Re: [SMARTY] Re: [SMARTY-DEV] SV: [SMARTY] RC2 released

From: Date: Thu, 27 Mar 2003 16:14:24 +0000
Subject: Re: [SMARTY] Re: [SMARTY-DEV] SV: [SMARTY] RC2 released
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8958@lists.php.net to get a copy of this message
On Thursday 27 March 2003 15:14, Mark Rogers wrote: > $fn = $this->compile_dir.'smarty-release-'.$this->_version; > touch($fn); The problem is, that you will have in some days a couple of files called smarty-release-#. My suggestion stores the information in a file and update it. Because if using Smarty means also having lots of file accesses it does not matter to have one more of them. > Note that it has the added advantage of causing the cache to be cleared if > the file is not present, so deleting the smarty-release-x.x.x file is a > quick way to cause the compiled code to be cleared from the command line > (or from a cron job or whatever, for those who like to periodically delete > the files). Deleting the file is the major problem on many ISP. That's the reason why to have this method developed. Anyway, the best solution is the storage of the version in the compiled and cached template versions. Hinrich -- Hinrich Donner

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