Re: [SMARTY] Long compile time problems

From: Date: Mon, 19 Aug 2002 01:09:02 +0000
Subject: Re: [SMARTY] Long compile time problems
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5746@lists.php.net to get a copy of this message
If you can reliably reproduce the problem, then please provide some code samples. The smaller the better. Also provide environment information (OS, PHP build, Smarty version, etc.). cheers, Travis Josh Johnson wrote:
Forgive me if this is out of turn, I'm new to mailing lists in general, as well as to this group. I've been having a pesky problem with a site I'm developing that I couldn't find an answer to in the archives or the docs. For some reason, intermittently, when I change a template it will take a long time for it to compile. Once it manages to compile, it runs fine. It takes so long that the browser will often time out. But it doesn't seem consistent. Some days it works speedily in true Smarty form, other days it crawls. I haven't noticed a pattern yet. When it first happened, I immediately started checking my code and making sure the server wasn't overloaded, but it's happened on two different UNIX servers (when I was initially developing the site, I was using Windows/Apache and didn't experience the problem), and I've streamlined my code. I can't see anything obvious that's causing the problem, except that when it happens, it only happens when I'm viewing a page that contains a template that was just changed. It even happens if I remove all of the function calls from a template. Is there anything that anyone can think of that might cause the template compiler to run slow like this? I'm out of ideas, and willing to try anything that might help. Thanks for your help,
-- Josh     
-- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>

« previous php.smarty.general (#5746) next »