Re: Output_Cache Module

From: Date: Thu, 22 Feb 2001 10:13:53 +0000
Subject: Re: Output_Cache Module
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1433@lists.php.net to get a copy of this message
On Wed, 21 Feb 2001, Christian Stocker wrote: > There are actually 2 modules. One with the DB stuff and one without. One possible way to store how long to use the cached file in the non-db module would be to touch() the cache file into the future time and later when accessing it to check if filemtime() is in the past. Although must say I don't know how costly is it to check filemtime(). Some other caching classes i have seen store the cache TTL in a separate file. I think checking filemtime() should still be faster than opening a separate file and reading a timestamp value from there. Can someone educate me on this one ? :) -- Mika Tuupola http://www.appelsiini.net/~tuupola/

« previous php.pear (#1433) next »