Hello,

SP wrote:
> Thanks dude I'll take a look at it.  How do you get around caching only certain 
>parts of a
> page?

No problem, just capture all the page output in a variable and feed it 
to the class.

Regards,
Manuel Lemos


> 
> -----Original Message-----
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
> Sent: May 5, 2002 4:01 PM
> To: Sp
> Cc: Miguel Cruz; Pag; Luc Saint-Elie
> Subject: Re: [PHP] PHP compared to JSP
> 
> 
> Hello,
> 
> Sp wrote:
> 
>>Does anyone think caching should be built into php for it to edge out the 
>competition?
>>(like what smarty is doing)
>>
>>I mean a static page will always serve up faster then a dynamic one.  Also even if 
>you
> 
> are
> 
>>getting 100 pages/sec on your database, you could cache it for 5 seconds and you save
> 
> 500
> 
>>accesses to your database.  Yeah the page would be at most 5 seconds old but no one
> 
> would
> 
>>know.
> 
> 
> I have been doing that for quite some time and I can tell that it is not
> worthy to cache just database query results but rather the pages that
> are generated with the data that is returned with such queries.
> 
> For that I have developed of a robust class that caches pages in files
> while it prevents that concurrent accesses update the cache files
> simultaneously to prevent corrupting the cached data.
> 
> You may want to try getting it here:
> 
> http://www.phpclasses.org/browse.html/package/313.html
> 
> Regards,
> Manuel Lemos
> 
> 
> .
> 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to