Re: [SMARTY] Caching & dynamic changing of cache_dir

From: Date: Sun, 30 Jun 2002 05:22:34 +0000
Subject: Re: [SMARTY] Caching & dynamic changing of cache_dir
References: 1 2 3 4 5 6 7 8  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5103@lists.php.net to get a copy of this message
"Monte Ohrt" <monte@ispi.net> schrieb: > What gets cleared? Currently, only the first one will. I'm not sure if > it should respect template paths, or if it is even desirable. If i change a single template, i've got to clear the whole cache. IMHO this doesn't make sense and is unacceptable. But i still love the new cacheID handling. How about using the template's name (its ID) as topmost directory within the cache_dir, containing cacheIDs subdirs for each template? If NULL is used as template-name, the clear_cache function could go and get all template-dirs in cache_dir (the whole first level within cache_dir) and clear up the cacheID's subdirs from within each cached template-dir. So all these: $smarty -> clear_cache ('myTemplate.tpl'); $smarty -> clear_cache ('myTemplate.tpl', 'foo|bar'); $smarty -> clear_cache (null, 'foo|bar') would work. Don't you think so? Norbert

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