go ahead... be a heretic | |
PerlMonks |
Apache::CacheContent and unforeseen side effectsby geektron (Curate) |
on Dec 27, 2004 at 17:45 UTC ( [id://417590]=perlquestion: print w/replies, xml ) | Need Help?? |
geektron has asked for the wisdom of the Perl Monks concerning the following question:
one of my client's sites uses an external site to store name, address, etc. information, and rather than maintain that information in 2 places ( our local DB and the 3rd party site ), we use a mod_perl handler to fetch the relevant information and substitute it in templates. requests for http://mysite.com/12345/index.htm are "replicated" by using the ID number in the URI, contacting the 3rd party site, and using the returned information to populate the index.htm template
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 ...
Back to
Seekers of Perl Wisdom
|
|