Re: [SMARTY] Compile directory?

From: Date: Mon, 31 Mar 2003 17:25:02 +0000
Subject: Re: [SMARTY] Compile directory?
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9011@lists.php.net to get a copy of this message
On Mon, Mar 31, 2003 at 06:13:08PM +0200, 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? if you leave compile_check=true then you only have to remove the compiled-temlates. they will be recompiled on demand. if you have the extreme case that you must have compile_check=false (measure the difference between compile_check=true and =false to be sure the speed-gain is worth the inconvinience), then you have to write you own little script, that forces compilation. use fetch() with a smarty-instance fith compile_check=true (and if you need to be sure maybe force_compile=true) to do this. you'll have to write you own directory-traversal-routines, though.

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