PET::CacheControl

Init-ed by the Dispatcher.  Different cache controlling methods.  Methods return: ($cachekey, $cached) $cachekey is the key for this particular page/call (cache key), $cached should return 0 or 1 (0: refresh; 1: cached).  If $cachekey is undef, this page cannot be cached (caching stage skippped).  All methods are passed the given cachecontrol hash (if any).

Summary
PET::CacheControlInit-ed by the Dispatcher.
Variables
$DISP
$CACHE
Functions
new ($disp)Default constructor, gets DISP.
init ()
timeonly ($ctrl)Time-based expiration.
_seconds($string)Converts time to seconds, e.g.

Variables

$DISP

our $DISP

$CACHE

our $CACHE

Functions

new ($disp)

sub new

Default constructor, gets DISP.  You should really not override this.

init ()

sub init

timeonly ($ctrl)

sub timeonly

Time-based expiration.

_seconds($string)

sub _seconds

Converts time to seconds, e.g.  10m to 600, 55s to 55, 1h to 3600

our $DISP
our $CACHE
sub new
Default constructor, gets DISP.
sub init
sub timeonly
Time-based expiration.
sub _seconds
Converts time to seconds, e.g.
Close