Plack::Middleware::Cache
Use Cached Responses of Certain URIs
Use Cached Responses of Certain URIs
builder {
enable "Cache",
match_url => [
'^/foo/',
'\\?.*xxx=.*',
],
cache_dir => '/tmp/plack-cache';
$app;
};
This middleware allows you to cache expensive and non-changing responses from URIs that match a list of regular expression patterns.
The following parameters can be used:
Thanks to Strategic Data for supporting the writing and release of this module.
Ingy doet Net <ingy@cpan.org>
Copyright (c) 2011-2014. Ingy doet 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>