File: README

package info (click to toggle)
libplack-middleware-cache-perl 0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 112 kB
  • sloc: perl: 66; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 1,178 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
NAME
    Plack::Middleware::Cache - Use Cached Responses of Certain URIs

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>