I searched the web but couldn't find anything about this.
If I hold the Refresh Key F5 my perl script dies with
Couldn't rename CGI_Cache\content\4\5\3\4534b4c894c4e72ddb0480068c379c5dad798c0e.tmp1984 to CGI_Cache\content\4\5\3\4534b4c894c4e72ddb0480068c379c5dad798c0e at C:/Perl/site/lib/Cache/FileBackend.pm line 572.
This happens occasionally.
did I do anything wrong, or is this a multi-user problem with CGI-Cache called from
several processes with the same key.
Why are the files renamed ? They are not expired yet !
I am using
Perl 5.8
CGI::Cache installed with ppm ( ActiveState )
WIN 2003 Server standard
IIS 6 ( latest )
Could anyone help me with this ?
here some of the code :
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;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.