Plack::Middleware::Cache3pm
Use cached responses of certain uris
Usage
builder {enable "Cache",match_url => ['^/foo/','\\?.*xxx=.*',],cache_dir => '/tmp/plack-cache';$app;};
Overview
This middleware allows you to cache expensive and non-changing responses from URIs that match a list of regular expression patterns.
Parameters
The following parameters can be used:
- match_url (required)
-
A regexp string or array ref of regexp strings to try to match the current URL against.
- cache_dir (optional)
-
A directory to write the cached responses.
- debug (optional)
-
Set to 1 to warn cache information.
Thanks
Thanks to Strategic Data for supporting the writing and release of this module.
Copyright and license
Copyright 2011-2014. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
Releases
6 releases since Debian 8 (Jessie); the text changed 2 times.