Re: Poor man's cache...

From: Date: Thu, 27 Sep 2001 19:23:48 +0000
Subject: Re: Poor man's cache...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69036@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote:
Instead of the redirect like that, you could set up an ErrorDocument 404 handler in your httpd.conf and in that handler script check for that specific URL and generate it. If the file exists your 404 handler won't get called and you save yourself a stat() and a redirect.
Good point! Our site's relatively low traffic (although important to us :), so resource usage is not much of a general concern for us. For a busy page on a busy server, I could certainly see this method being costly. -- _______ ___ _ ____ _____ Chris Hobbs / ____\ \ / / | | |/ ___\| __ \ Head Geek | (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster ____) | \ / | |__| |____) | |__| | \____/ \/ \____/ \____/|_____/ http://www.silvervalley.k12.ca.us chobbs@silvervalley.k12.ca.us

« previous php.general (#69036) next »