Re: [PHP Template] cached templates...
[email protected] (Andrei Zmievski) Wed, 1 Mar 2000 09:02:35 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 01 Mar 2000, [email protected] 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