X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FCache.pm;h=e79d086614f1aa5129d507cd2ef3db5e3a3f6af0;hb=887cc08f06d6f3e89f22f693726c84c80f131423;hp=990f82a1049e7f372170d169ec333d58ece3ffa7;hpb=271f51060955bdfdc06b73872a4d45de863885e8;p=catagits%2FCatalyst-Plugin-Cache.git diff --git a/lib/Catalyst/Plugin/Cache.pm b/lib/Catalyst/Plugin/Cache.pm index 990f82a..e79d086 100644 --- a/lib/Catalyst/Plugin/Cache.pm +++ b/lib/Catalyst/Plugin/Cache.pm @@ -81,7 +81,7 @@ sub setup_generic_cache_backend { my %config = %$config; if ( my $class = delete $config{class} ) { - $app->setup_cache_backend_by_class( $name, $class, %config ); + $app->setup_cache_backend_by_class( $name, $class, \%config ); } elsif ( my $store = delete $config->{store} || $app->default_cache_store ) { my $method = lc("setup_${store}_cache_backend"); @@ -89,7 +89,7 @@ sub setup_generic_cache_backend { "Please consult the Catalyst::Plugin::Cache documentation on how to configure hetrogeneous stores." unless $app->can($method); - $app->$method( $name, %config ); + $app->$method( $name, \%config ); } else { $app->log->warn("Couldn't setup the cache backend named '$name'"); }