[](https://travis-ci.org/simbabque/Mojolicious-Plugin-Renderer-WithoutCache) [](https://coveralls.io/r/simbabque/Mojolicious-Plugin-Renderer-WithoutCache?branch=master) # NAME Mojolicious::Plugin::Renderer::WithoutCache - Disable the template cache in your Mojo app
# VERSION Version 0.04 # SYNOPSIS This plugin turns off the renderer's cache in [Mojolicious](https://metacpan.org/pod/Mojolicious) and [Mojo::Lite](https://metacpan.org/pod/Mojo::Lite) applications. use Mojolicious::Lite; plugin 'Renderer::WithoutCache'; # DESCRIPTION This does what it says on the box. It turns off caching for the [Mojolicious::Renderer](https://metacpan.org/pod/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](https://metacpan.org/pod/Mojo::Cache) to `0` if you plan to do a lot of uncached requests, becase [Mojolicious::Renderer](https://metacpan.org/pod/Mojolicious::Renderer) will still try to cache, and every time [Mojo::Cache](https://metacpan.org/pod/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. # METHODS ## register Register the plugin in a [Mojolicious](https://metacpan.org/pod/Mojolicious) application. $plugin->register(Mojolicious->new); # AUTHOR simbabque, `