Re: [SMARTY] compile all templates at once
| From: | messju mohr | Date: | Sat, 14 Aug 2004 08:56:37 +0000 |
| Subject: | Re: [SMARTY] compile all templates at once | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11683@lists.php.net to get a copy of this message | ||
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