I find caching to be extremely helpful. I have a complex property layer for my php based web engine/library. These properies have several levels of dependency and inheritance which can take as many as 15 queries to build. Then I cache the tree and it is reduced to a single query on subsequent page requests. Also I found a 30% load time improvement when I installed the PHPAccelerator compile cache which is excellent considering the amount of optimizations I have in my code. Thus to close I must say there are different types of caching to suit different needs and whether one or the other is suitable depends on what you want whether it makes sense to cache the data.
Cheers, Rob. Manuel Lemos wrote: > > 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 -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php