Subject: | cache_finalize_hook is never called |
Date: | Fri, 7 Oct 2011 13:28:22 -0700 |
To: | bug-Catalyst-Plugin-PageCache [...] rt.cpan.org |
From: | Paul Sarena <paul [...] itools.com> |
When specifying separate methods for cache_dispatch_hook and
cache_finalize_hook, only cache_dispatch_hook is called, once at
dispatch and again at finalize.
Catalyst-Plugin-PageCache-0.31/lib/Catalyst/Plugin/PageCache.pm line
272 within sub finalize reads:
my $hook_name = $pc_config->{cache_dispatch_hook} ||
$pc_config->{cache_hook};
I believe it should be:
my $hook_name = $pc_config->{cache_finalize_hook} ||
$pc_config->{cache_hook};