Re: 1.4.0b2 => bug width cache / templates_c

From: Date: Fri, 04 May 2001 13:30:51 +0000
Subject: Re: 1.4.0b2 => bug width cache / templates_c
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-682@lists.php.net to get a copy of this message
To make things clear, the files in the templates_c directory are not cache files. They are compiled versions of the templates. The file structure was changed to a URL encoded filename to make way for arbitrary template resources. For instance, if your templates come from another directory or from a database, we want to be sure they won't overwrite each other if they are named the same. So the template resource id is used as a file name, URL encoded. They are much easier for Smarty to manage this way too. Changing the file structure in templates_c for version 1.4.0 did not affect cache behavior in any way. Anytime you have caching enabled and you change a template, you must wipe out the cache file(s) to see the results, or wait for the cache to expire. marc konopka wrote: > > Hi, > When i execute one of my scripts, i have this cached templates in > my templates_c directory : > site%2Fdepeche%2Fdepeche.tpl.php site%2Ffooter.tpl.php > site%2Fheader.tpl.php > site%2Fdepeche%2Fdepeche_centre.tpl.php site%2Fgauche.tpl.php > > All "/" are encoded by "%2F" (base64) so templates_c is no more a mirror of > my templates > directory tree. > > Consequence : i have to delete manually the cache to see my modification > each time i change > something in templates. > > Seem to miss a "decode" somehere. > > Bye > Marc, > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/ð > ”ö`ôK�œ­"³s -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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