Re: [SMARTY] compile all templates at once

From: Date: Sun, 15 Aug 2004 05:09:31 +0000
Subject: Re: [SMARTY] compile all templates at once
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11684@lists.php.net to get a copy of this message
Thanks a lot, it works :) "Messju Mohr" <messju@lammfellpuschen.de> wrote in message news:20040814085637.GE9698@pharao.serveftp.org... > On Sat, Aug 14, 2004 at 10:24:44AM +0300, Maris wrote: >> Hi, >> >> 1) is there a way to tell Smarty to compile all templates >> from smarty/templates to smarty/compile without clicking >> through all www pages and waiting till all templates have >> been visited and compiled? > > write a script that searches through $smarty->template_dir and call > $smarty->fetch() for each template found. > >> 2) Since templates are compiled they can be encoded with >> Zend and posted to clients server. Is there any Smarty setting that >> should be reset to zero to avoid template recompilation after some >> X days? In other words - how to make sure that templates >> are not being tried to recompile after some period of time? > > $smarty->compile_check = false; > >> Thanks, >> Maris > > wbr > messju

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