Re: [SMARTY] Compile directory?

From: Date: Mon, 31 Mar 2003 18:16:40 +0000
Subject: Re: [SMARTY] Compile directory?
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9017@lists.php.net to get a copy of this message
On Mon, Mar 31, 2003 at 05:25:02PM +0000, messju mohr wrote: > 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. forget this, it's wrong. monte just stated: compile_check can be left off. you just need to clear out your compiled templates, after they changed. they will be recompiled then. sorry for the confusion. greetings messju

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