Re: Output_Cache Module

From: Date: Sat, 24 Feb 2001 11:41:23 +0000
Subject: Re: Output_Cache Module
References: 1 2  Groups: php.pear 
Request: Send a blank email to php-pear+get-1490@lists.php.net to get a copy of this message
* Christian Stocker wrote: > maybe as an additional feature i can imagine that. but calculating a md5 > hash every time has some speed penalties... in our application, all the > relevant content data comes out of a database, so maybe a timestamp could > be useful for that :) but at the moment we just delete the appropriate > cache-file/entry, when we change the content of the pages I prefer having a is_valid_cache() method which can be overwritten in an extended class and checks itself about the validity of the cached data container. The PEAR caching class itself should come with a set of properties like time stamp, md5 hash and so on and the developer can choose "Oh, I want to cache and test the validity with the time stamp" or extend the class itself with his own testing method/property to set a data container to "valid" / "expired" etc. -- Björn Schotte bjoern@php.net http://rent-a-phpwizard.de/ bjoern@baer.main.de Software dev advocate: http://www.advogato.org/person/baerli/

« previous php.pear (#1490) next »