Re: PHP Fatal Error's
| From: | Ian Warner | Date: | Fri, 06 Oct 2006 02:56:11 +0000 |
| Subject: | Re: PHP Fatal Error's | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25358@lists.php.net to get a copy of this message | ||
Raphaël Gertz wrote:
You're making some false assumptions here. "PEAR" is not slow. Your usage of it may be, though. Smarty is IMHO just fine, as long as you're using the caches that it provides. There are 2 caches and you should try to make use of *both* of them. However, this is outside the scope of this list as Smarty is not a PEAR package. I again suggest you google for ways to make your scripts more efficient with an emphasis on caching your *final output*.Le jeudi 5 octobre 2006 18:42, Justin Patrin a écrit : On 10/5/06, Ben Sytko <bsytko@gmail.com> wrote:Ahh, so this is most likely a issue with the database dying? Beside optimizing the code, are their any other alternatives? I mean, is this an issue with PEAR that it can't handle large loads, or just a poor server? I've read that Smarty can be slow, would this have an impact? Would it be better to just drop Smarty and just make my own template engine?Justin,this is I/O that is causing the slowness. There are also other possible problems. There are plenty of resources on the net about optimizing your website. A first step might be to look at possibly caching some of your output so that PHP has to do less and so your DB isn't hit as much.Sounds like your site can't keep up with the higher volume. Likely
The only problem with sigma and other template, is that if you use sessions and private data you can't use cache. (except if you separate the private data in an iframe or httpxmlrpc or something like that javascript code)Anyway if you have final output caching schema that are compatible to private user data with using sigma template I am interested for your answer... I have only beeing able to disable caching for the page that contain private data, if you have other idea, I am interested. Hi To be honest I only briefly checked this out, I am running everything through HTML_PAGE2 and was hoping to do the caching through that, I will need to check this out more. It does seem pretty obvious though that drawing anything from Cache would mean that sessions cannot be used. within that page code structure. I usually only like to cache certain blocks of a page anyway such as the DB queries and output. I am lucky I have my own server so dont worry too much about bandwidth and performance they have never reached potential yet. Thanks for the heads up though I will check it out. Ian