Re: Output_Cache Module

From: Date: Fri, 23 Feb 2001 07:19:13 +0000
Subject: Re: Output_Cache Module
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1472@lists.php.net to get a copy of this message
Christian Stocker wrote: > As promised, i did a new implementation of the Output_Cache stuff. > I did not everything as Ulf proposed, but there is now a main class und 2 > storage sub classes (one for file and one for DB). The Start/End stuff > with included ob_ functions is still there, since i like that :) but the > relevant functions are now outsourced to the storage class. So it should > not be a big problem, to do it also the way, ulf proposed and to include > some easy functions to store just data, not only the whole output stuff.. > (as i mentioned before it's possible already with more than one Start/End > section) > > you can have a look at the source at http://www.nomad.ch/php > Documentation is naturally still missing, but my boss forces me to write > some tomorrow :) Hi, I like your caching classes, but I need the possibility to store not only output. So I moved the container logic for the DB and the fileBack end into separate classes ( Cache_Container_db and Cache_Container_file) and made a generic Cache class that is a parent of Cache_Output. It can handle abitrary data. I'm also adding a shared memory container (Cache_Container_shmop or Cache_Container_shmv). I'll post an url later on today when I'm through making the changes. Vinai

« previous php.pear (#1472) next »