geektron has asked for the wisdom of the Perl Monks concerning the following question:
last week the 3rd party site complained about too many hits to the server, so i implemented Apache::CacheContent for this site. minimized the hits to the 3rd party server, made things faster for endusers because of the lessened amount of 'net traffic, and all seemed fine.
what i didn't realize would be a problem: the sheer volume of these cache files. i now have something like 46,000 cache files ... because of the number of customers that need this replicated data. that's a problem, because even a remote `ls` takes too long.
i want to stuff the cache files somewhere *else*, i.e. one step out of the DocumentRoot ... but i don't see any options in the perldoc to change the location of the cache files. i was thinking about using a DirectoryAlias, but i also need the LocationMatch to trigger the cache/ dynamic content.
anyone done something like this before?
EDIT: the httpd.conf section for the handlers might be useful ...
PerlModule Mysite::Replicate <Directory /home/httpd/mysite.com/html> SetHandler perl-script PerlHandler MySite::Replicate </Directory> <LocationMatch "^/[0-9]"> SetHandler perl-script PerlFixupHandler Mysite::Replicate->disk_cache </LocationMatch>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Apache::CacheContent and unforeseen side effects
by The Mad Hatter (Priest) on Dec 27, 2004 at 18:11 UTC | |
by geektron (Curate) on Dec 27, 2004 at 18:12 UTC | |
by The Mad Hatter (Priest) on Dec 27, 2004 at 18:13 UTC | |
by geektron (Curate) on Dec 27, 2004 at 18:21 UTC | |
by The Mad Hatter (Priest) on Dec 27, 2004 at 18:27 UTC | |
| |
Re: Apache::CacheContent and unforeseen side effects
by perrin (Chancellor) on Dec 27, 2004 at 21:05 UTC | |
by geektron (Curate) on Dec 27, 2004 at 21:34 UTC | |
by perrin (Chancellor) on Dec 28, 2004 at 05:29 UTC |