Re: [need for advices] fastCaching

From: Date: Mon, 22 Jul 2002 14:21:16 +0000
Subject: Re: [need for advices] fastCaching
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7849@lists.php.net to get a copy of this message
MARTY Fabien wrote: > > (Tomas) > > I guess that just isolating the container isCached() functions into a > > light layer would multiply the speed factor. > > Ok, I'm just finishing benchs. I use this minimalist layer for tests. > > Cache/Container/file.php : > > <?php > class Cache_Container_file { > function isCached() {return true;} > function isExpired() {return false;} > function load() {return '123';} > } > ?> Hehe, but this is not the minimal layer I was thinking. This way you end up including: file.php, Container.php, Error.php and PEAR.php. My idea was more that way: Class_isCached { function isCached($container, $opts) { } function _isCachedFile($id) { //code from Cache_Container_file here } function _isCachedDB() {} } Just one file to include. Tomas V.V.Cox

« previous php.pear.dev (#7849) next »