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).
| PET:: | Init-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. |
our $DISP
our $CACHE
Default constructor, gets DISP.
sub new
sub init
Time-based expiration.
sub timeonly
Converts time to seconds, e.g.
sub _seconds