[Catalyst-commits] r14127 - in Catalyst-Plugin-PageCache/trunk: .
lib/Catalyst/Plugin
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Oct 4 17:05:34 GMT 2011
Author: t0m
Date: 2011-10-04 17:05:34 +0000 (Tue, 04 Oct 2011)
New Revision: 14127
Modified:
Catalyst-Plugin-PageCache/trunk/Changes
Catalyst-Plugin-PageCache/trunk/lib/Catalyst/Plugin/PageCache.pm
Log:
Document using ::Plugin::Cache rather than ::Plugin::Cache::FileCache which is deprecated
Modified: Catalyst-Plugin-PageCache/trunk/Changes
===================================================================
--- Catalyst-Plugin-PageCache/trunk/Changes 2011-10-04 15:52:34 UTC (rev 14126)
+++ Catalyst-Plugin-PageCache/trunk/Changes 2011-10-04 17:05:34 UTC (rev 14127)
@@ -1,5 +1,8 @@
Revision history for Perl extension Catalyst::Plugin::PageCache
+ - Document using Catalyst::Plugin::Cache rather than
+ Catalyst::Plugin::Cache::FileCache which is deprecated.
+
0.31 2010-11-09
- Fixed config in test apps to silence warnings from tests.
- Fixed module version number.
Modified: Catalyst-Plugin-PageCache/trunk/lib/Catalyst/Plugin/PageCache.pm
===================================================================
--- Catalyst-Plugin-PageCache/trunk/lib/Catalyst/Plugin/PageCache.pm 2011-10-04 15:52:34 UTC (rev 14126)
+++ Catalyst-Plugin-PageCache/trunk/lib/Catalyst/Plugin/PageCache.pm 2011-10-04 17:05:34 UTC (rev 14127)
@@ -494,7 +494,7 @@
=head1 SYNOPSIS
use Catalyst;
- MyApp->setup( qw/Cache::FileCache PageCache/ );
+ MyApp->setup( qw/Cache PageCache/ );
__PACKAGE__->config(
'Plugin::PageCache' => {
@@ -518,9 +518,11 @@
# created page.
cache_dispatch_hook => 'some_method_for_dispatch',
cache_finalize_hook => 'some_method_for_finalize',
- }
+ },
+ 'Plugin::Cache' => { # config for Catalyst::Plugin::Cache here
+ },
);
-
+
sub some_method {
my $c = shift;
if ( $c->user_exists and $c->user->some_field ) {
More information about the Catalyst-commits
mailing list