Mojolicious::Plugin::Renderer::WithoutCache - Disable the template cache in your Mojo app
use Mojolicious::Lite; plugin 'Renderer::WithoutCache';
This does what it says on the box. It turns off caching for the Mojolicious::Renderer or any other renderer that's inside
$app->renderer by injecting a cache object that does not do anything. This is supperior to setting the
max_keys of Mojo::Cache to
0 if you plan to do a lot of uncached requests, becase Mojolicious::Renderer will still try to cache, and every time Mojo::Cache sets a value in the cache it looks at the
max_keys, and then stops.
Doing nothing at all is cheaper. But not a lot really.
Register the plugin in a Mojolicious application.
<simbabque at cpan.org>
Please report any bugs or feature requests through an issue on github at https://github.com/simbabque/Mojolicious-Plugin-Renderer-WithoutCache/issues.
You can find documentation for this module with the perldoc command.
I don't know.
This plugin was inspired by Tom Hunt asking about turning the cache off on Stack Overflow.
Copyright (C) simbabque.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.