Re: PHP compared to JSP
| From: | Manuel Lemos | Date: | Tue, 07 May 2002 03:32:31 +0000 |
| Subject: | Re: PHP compared to JSP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96350@lists.php.net to get a copy of this message | ||
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:mlemos@acm.org] 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 youaregetting 100 pages/sec on your database, you could cache it for 5 seconds and you save500accesses to your database. Yeah the page would be at most 5 seconds old but no onewouldknow.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 .