Re: Re[2]: [SMARTY] Cache groups problem
| From: | Monte Ohrt | Date: | Thu, 20 Feb 2003 15:30:36 +0000 |
| Subject: | Re: Re[2]: [SMARTY] Cache groups problem | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8005@lists.php.net to get a copy of this message | ||
I see the problem. It seems that the compile_id should be the first
cache group, right?
I have committed a patch to CVS, see if this works.
Monte
On Wed, 2003-02-19 at 09:30, Katana wrote:
> 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
--
Monte Ohrt <monte@ispi.net>