[Catalyst] Cannot create a cache
Ian Docherty
ian at iandocherty.com
Thu Nov 16 16:08:58 GMT 2006
I am trying to implement a cache with a Catalyst app running under
Apache2 mod-perl and as far as I can tell the cache is clear at the
start of each request.
I have a hash which is acting as my cache but even if I put values into
it, on the next request the hash is empty.
Have I configured my Apache2 config file correctly for Catalyst or am I
missing something more basic?
Regards
Ian C. Docherty (ICD)
#######
package Catalyst::Plugin::MyPlugin;
use vars qw (%cached);
My apache2 config is as follows.
NameVirtualHost *:8000
<Perl>
use lib qw(/var/sandbox/myapp/lib);
</Perl>
PerlModule Horivert::MyApp
<VirtualHost *:8000>
ServerName sprint.mydomain.com
ErrorLog /var/sandbox/myapp/error_log
Alias /static/ "/var/sandbox/myapp/root/static/"
<Location />
SetHandler modperl
PerlResponseHandler Horivert::MyApp
</Location>
</VirtualHost>
More information about the Catalyst
mailing list