Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Response Caching Middleware for Perl's Plack
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc/Plack/Middleware
lib/Plack/Middleware
.travis.yml
Changes
Contributing
Makefile
Makefile.PL
Meta
ReadMe.pod

ReadMe.pod

NAME

Plack::Middleware::Cache - Use Cached Responses of Certain URIs

plack-middleware-cache-pm plack-middleware-cache-pm

SYNOPSIS

    builder {
        enable "Cache",
            match_url => [
                '^/foo/',
                '\\?.*xxx=.*',
            ],
            cache_dir => '/tmp/plack-cache';
        $app;
    };

DESCRIPTION

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.

AUTHOR

Ingy döt Net <ingy@cpan.org>

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

Something went wrong with that request. Please try again.