CGI::Cache is a great little perl module that takes advantage of Cache::SizeAwareFileCache to enable web site caching …
Features:
and believe me… it's FAST - much faster than 1 SQL query (except you need at least 1 live Query in your application) and zillions faster than n x SQL + n x XML-http requests …
The only problem in the latest version 1.4142
line 226
</p>
# Set default value for max_size
->{max_size} = ::SizeAwareFileCache::NO_MAX_SIZE
<p>
must be fixed with
</p>
# Set default value for max_size
->{max_size} = ::SizeAwareFileCache::NO_MAX_SIZE
unless defined ->{max_size};
<p>
to make sure the maximum cache size is taken care of…
I just noticed this at a 94% full disk – carrying a 40+ GB disk cache :-)
so the latest version – probably all of the versions – simply ignore the setting for max_size and fill up your hard-disk until you unix demons crash because they can't write their logs… :-)
I wrote David Coppit – the author already, so expect a bugfix soon – meanwhile you can dare to edit your /usr/lib/perl5/site_perl/5.8.0/CGI/Cache.pm with this extra…
But be warned: cleaning a 40GB cache down to 1 GB or whatever you want it eats up all the server space… I will probably opt in for a compete rebuild of the cache over time to avoid an hourlong downtime here…
Recent comments
5 weeks 1 day ago
5 weeks 2 days ago
7 weeks 2 days ago
8 weeks 18 hours ago
8 weeks 2 days ago
17 weeks 1 day ago
17 weeks 1 day ago
17 weeks 3 days ago
17 weeks 4 days ago
18 weeks 3 days ago