Maddy has asked for the wisdom of the Perl Monks concerning the following question:
use CGI::Cache; #Set up cache CGI::Cache::setup( { cache_options => { cache_root => 'CGI_Cache', namespace => 'content', + max_size => 2 * 1024 * 1024 * 1024 , default_expires_in => (24-(localtime(time))[2] +).' hours', # stderr_filehandle => $stderr, } } ); my @cachekey=@parameter; CGI::Cache::set_key(@cachekey); $cacheit=1; CGI::Cache::start() or eval {$dbh = GetSql->disconnect_dbi(1) if $dbh +; $elapsed=tv_interval ( $gettimeref ); exit;}; CGI::Cache::stop() if $cacheit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Cache problems in FileBackend.pm
by perrin (Chancellor) on Apr 20, 2005 at 19:16 UTC | |
by Maddy (Initiate) on Apr 21, 2005 at 12:19 UTC | |
by perrin (Chancellor) on Apr 21, 2005 at 12:50 UTC | |
by Maddy (Initiate) on Apr 22, 2005 at 20:46 UTC |