On Thu, Dec 06, 2001 at 10:04:26AM -0800, Bill Moseley wrote:
> At 08:19 AM 12/06/01 -0800, Paul Lindner wrote:
>
> Ok, hit me over the head. Why wouldn't you want to use a caching proxy?
Apache::CacheContent gives you more control over the caching process
and keeps the expiration headers from leaking to the browser. Or
maybe you want to dynamically control the TTL?
sub ttl {
...
if ($load_avg > 5) {
return 60 * 5;
} else {
return 60;
}
}
> BTW -- I think where the docs are cached should be configurable. I don't
> like the idea of the document root writable by the web process.
That's the price you pay for this functionality. Because we use
Apache's native file serving code we need a url->directory mapping
somewhere.
Of course you don't need to make the entire docroot writable, just the
directory corresponding to your script.
--
Paul Lindner [EMAIL PROTECTED] ||||| | | | | | | | | |
mod_perl Developer's Cookbook http://www.modperlcookbook.org
Human Rights Declaration http://www.unhchr.ch/udhr/index.htm