Catalyst-ActionRole-PseudoCache
view release on metacpan or search on metacpan
lib/Catalyst/ActionRole/PseudoCache.pm view on Meta::CPAN
my $self = shift;
my ( $controller, $c ) = @_;
# do nothing if debug
return $self->$orig(@_)
if ($c->debug);
if ($self->true_cache) {
$self->_true_cache($orig,@_);
} else {
# backup method (for back compat)
$self->_pseudo_cache($orig,@_);
}
};
sub _true_cache {
my ($self, $orig, $controller, $c, @rest) = @_;
my $cache = $c->cache;
if (my $body = $cache->get($self->key)){
( run in 1.583 second using v1.01-cache-2.11-cpan-49f99fa48dc )