Re: [SMARTY-DEV] Cache Handling
| From: | Monte Ohrt | Date: | Mon, 17 Jun 2002 00:43:26 +0000 |
| Subject: | Re: [SMARTY-DEV] Cache Handling | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-145@lists.php.net to get a copy of this message | ||
Make your compile ids like this:
lang|en
lang|fr
lang|de
Then to clear all of them, use clear lang.
Monte
Andreas Kossmeier wrote:
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 representingthe *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