Re: Bugs in Cache Class

From: Date: Fri, 02 Mar 2001 14:19:34 +0000
Subject: Re: Bugs in Cache Class
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1546@lists.php.net to get a copy of this message
Christian Stocker schrieb: > found some bugs (should i put this stuff here, or send directly to > sebastian/ulf...) Yeah, I knew about all them and fixed them and others a few minutes ago. > can give relative expire-times as well (see getExpiresAbsolute() in > > http://cvs.nomad.ch/index.cgi/pearlib.old/Cache/Container/common.php?rev=1.10&content-type=text/x-cvsweb-markup > for how we did that) Sorry, can't reach that server. Guess, I know what you mean. This very similar feature is available: /** * Checks if a dataset is expired. * * @param string dataset ID * @param integer maximum age in seconds of the data set * @return boolean * @access public */ function isExpired($id, $max_age = 0) { ... if ($expired = ($this->expires <= time() || ($max_age && ($this->expires <= (time() + $max_age)))) ) { I'll change the implementation from relative (which is senseless) to absolute time for $max_age. Anyway wait for the weekend. I'll apply some more changes to the cache data structure and add new cache control feature. BTW, did you already ask for a CVS Account? Ulf -- Ulf Wendel, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99

« previous php.pear (#1546) next »