Re: [SMARTY] Compile directory?

From: Date: Mon, 31 Mar 2003 18:03:43 +0000
Subject: Re: [SMARTY] Compile directory?
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9014@lists.php.net to get a copy of this message
Do you typically have templates changing in a production environment, or very often at all? I would think you'd be in development when doing this. Turn compile-check on, do your changes, when you're all done with them (and viewed them so the recompile), turn off compile-check. If you really need to have template files constantly changing in production, you will probably want to leave compile-check on (overhead of file stats on every page hit), or script a procedure that clears compiled templates upon a change. Monte On Mon, 2003-03-31 at 10:13, Tom Sommer wrote: > On 31 Mar 2003 08:59:55 -0600, Monte Ohrt wrote: > > > No, because this won't work for every situation. There can be numerous > > environment settings that can affect the outcome of the compiled file, > > such as the compile_id. > > > Your best bet is to spider your web pages you want compiled (with > > something like wget) right after a compile/cache removal. > > Hmm, well... I was thinking that in a production environment, you wouldn't > want force_compile etc. enabled.... but when making changes to new themes, > you would have to visit each changed page (with force_compile etc. enabled) > before the new version will be compiled?! Am I wrong here? > > -- > Tom Sommer, Denmark > www.tsn.dk - www.dreamcoder.dk -- Monte Ohrt <monte@ispi.net>

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