misc minor fixes for C::P::Cache
Yuval Kogman [Fri, 11 Aug 2006 17:07:32 +0000 (17:07 +0000)]
Build.PL
lib/Catalyst/Plugin/Cache.pm

index f0b6a27..005ec3c 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -13,6 +13,7 @@ my $build = Module::Build->new(
         'Test::More'        => 0,
         'Test::Exception'   => 0,
         'Task::Weaken'      => 0,
+        'Test::use::ok'     => 0,
     },
     create_readme => 1,
     sign          => 1,
index 990f82a..e79d086 100644 (file)
@@ -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'");
     }