Maypole::Cache - Flexible caching of Maypole request output
package BeerDB; use base 'Apache::MVC'; use Maypole::Cache; BeerDB->config->{cache_options} = { class => "Cache::FileCache", default_expires_in => 600, ... };
This module replaces Maypole's main handler in your application with one which uses Cache::Cache to cache request output. By default it uses Cache::SharedMemoryCache although this, and all other Cache::Cache options, can be changed using the cache_options configuration hash.
Cache::Cache
Cache::SharedMemoryCache
cache_options
The module caches all pages, except those which trigger an authentication failure, or which use POST parameters, or when the nocache slot in the request object is set to a true value. A separate cache is maintained for each $r->user. You may want certain of your actions to set nocache if they do anything session-conditional.
nocache
$r->user
Maypole, Cache::Cache
Simon Cozens, <simon@cpan.org>
Copyright 2004 by Simon Cozens
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Maypole::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maypole::Cache
CPAN shell
perl -MCPAN -e shell install Maypole::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.