Re: [SMARTY] function for compiling template needed

From: Date: Thu, 11 Apr 2002 16:22:57 +0000
Subject: Re: [SMARTY] function for compiling template needed
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3628@lists.php.net to get a copy of this message
This sounds like overkill to me. I'd let the pages get generated as they are accessed, which is how Smarty is designed. The hits aren't _that_ slow to generate are they? Maybe a little hesitation, but not anything more than a few seconds, unless you are running your site on a 7mzh Amiga 500. ;-) In our experience, we have 100+ clients using Smarty running on a web cluster of five Sparc systems, and we periodically flush ALL compiled pages and caches like during upgrades. The load goes up a little bit and the pages are slightly slower for short time, but nothing that is unacceptable. Otherwise, yep, just have a robot traverse the links. That should get most of them compiled. Elena Fraboschi wrote:
I have also toyed with the idea of having everything "compiled and ready to go", and my solution is to launch a "robot" that will simply request every page in the site, as a search engine would. That ought to force compilation, would it not? And it can be done at a time of day when on this side of the Atlantic people normally sleep (or did I mean normal people sleep? :-)) Am I missing something? Is this solution "too simple"? Is the idea that the monster (pardon me, Smarty) should be able to do everything (inclusing wash the dishes)? :-) If I am missing some important point, please tell me, honest. I too am a newbie of sorts. Best, elena
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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