Re: [PHP Template] cached templates...

From: Date: Wed, 01 Mar 2000 15:02:35 +0000
Subject: Re: [PHP Template] cached templates...
References: 1 2 3  Groups: php.template 
Request: Send a blank email to php-template+get-281@lists.php.net to get a copy of this message
On Wed, 01 Mar 2000, abush@microcenter.com wrote: > I assume that the in-memory cached copy will only be available as long > as the Apache (or other http server) child lives, x amount of requests > (depending on the server config)? Is this correct, or am I way off? Is > the template engine going to actually be a module to PHP, or a seperate > cgi type program? Yes, you're correct, and the template engine is going to be a module to PHP. Currently, though, if two different Apache processes open the same template, they are both going to cache it. For phase II of the engine, I'll probably try to implement shared cached template pool for all Apache processes. > I think that this type of caching would be a very good thing to have. > It would help increse performance of multiple large db driven sites with > data that really does not change very often. > > The question is... where would you store these 'staic' cached template > outputs, the directory and file names would have to be accessible to the > server process and take care to not clobber other 'static' cached > templates. You could store it on the filesystem or in memory. I don't know what the best thing would be. -Andrei The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

« previous php.template (#281) next »