キャッシュキャッシュキャッシュ
そればっか考えてる。今更かもしれんけど、Catalyst::Plugin::PageCacheがとてもクールやな。
Catalyst::Plugin::Authenticationと併用を考えられたコードついてるな。user_exists はたぶん、Authentication用。
return $c->NEXT::dispatch(@_) if ( $c->config->{page_cache}->{auto_check_user} && $c->can('user_exists') && $c->user_exists ); return $c->NEXT::finalize(@_) if ( $c->config->{page_cache}->{auto_check_user} && $c->can('user_exists') && $c->user_exists );