Cache Handling

From: Date: Sun, 16 Jun 2002 17:13:42 +0000
Subject: Cache Handling
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-143@lists.php.net to get a copy of this message
hi, the new implemented Cache Handling doesn't work as discussed for compile IDs. IMO the order of the directories created for cache and compile IDs should be different: # currently: compileID/cacheID/fileName pro: you can clear all caches by a given compileID con: you can't clear a cacheID with different compileIDs representing
       the *same* cached data
# should be: cacheID/fileName/compileID Monte Ohrt wrote (2002-06-11):
the compile_id superceeds cache_id, so you cannot "group" templates or caches across separate compile_ids (which makes sense.)
why? the reason for all this was the ability to easily clear grouped template representations. imagine a multi-language template for english, french and german (compile IDs). if the data changes, you have to clear the cache files for all languages (compileIDs). with compileID on top level, this isn't possible without searching. andreas -- andreas kossmeier bergfex.at - http://www.bergfex.at

« previous php.smarty.dev (#143) next »