Re[2]: [SMARTY] Cache groups problem
| From: | Katana | Date: | Wed, 19 Feb 2003 15:30:38 +0000 |
| Subject: | Re[2]: [SMARTY] Cache groups problem | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7889@lists.php.net to get a copy of this message | ||
MO> You have to supply a group name when you call display() to put the
MO> templates into a group. Then you can remove them by that group.
OK, i have tested things a little.
I have something like:
$tpl->display('main.php', 'group1|group2|group3');
and i attempt to clear the cache using:
$tpl->clear_cache(null, 'group1|group2')
but the compile_id (the language, fr, here) is appended to the
cache_id (auto_id).
My cache files are in a directory like
<cache_dir>/group1/group2/group3/fr/
And the directory smarty attempts to delete is
<cache_dir>/group1/group2/fr/
and of course it doesn't work...
I have deleted the compile_id before i clear_cache (i'm restoring
it afterwards) and it works perfectly.
A bug ? Or a bug in my brain ? :)
Katana