RE: [SMARTY] Should $this->compile_check logic check the timestamp of parent & included php files?

From: Date: Wed, 29 May 2002 17:11:59 +0000
Subject: RE: [SMARTY] Should $this->compile_check logic check the timestamp of parent & included php files?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4432@lists.php.net to get a copy of this message
At 11:16 29/05/02 -0400, Robert V. Zwink wrote:
I might find a bug that when fixed could affect the generated output. The problem now is that when the bug is fixed, the cache persists. It becomes possible to have Smarty generated output of a php script persist even though the script would no longer generate the same output. We don't neccesarily want to purge all of the cached files when we update a page, we only want to destory the cached output that could have been affected by the change.
Make a simple file containing the following code: <?php require_once 'Smarty/Smarty.php'; $smarty = new Smarty; $smarty->clear_compiled_tpl(); $smarty->clear_all_cache(); ?> Then, every time you make a change just run this to remove the compiled templates + cache. Of course you don't need to remove the compiled templates if compile_check = On, but as I don't know your setup then I've included it. HTH Peter -- Maple Design - quality web design and programming http://www.mapledesign.co.uk

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