|
Posted by Monte Ohrt on 09/14/05 16:49
If you supply a template name to clear_cache(), it will be clearing only
ONE cache file, given a group or not. if you don't supply a template
(just pass null), then it will clear ALL cache files defined by the group.
Ivo Jansch wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi,
>
>messju mohr wrote:
>
>
>
>>>---
>>>// clear the foo.tpl cache file with "sports|basketball" as the cache_id
>>>$smarty->clear_cache("foo.tpl","sports|basketball");
>>>---
>>>
>>>This is example is wrong then,
>>>
>>>
>
>
>
>>"clear the foo.tpl cache file with "sports|basketball" as
>>the >>cache_id<< ..."
>>
>>and *NOT*:
>>
>>"clear the foo.tpl cache file with "sports|basketball" as the
>>
>>
>
>I don't understand. Clearly, a | is used here, so we are talking about
>grouping. In fact, this example does the same as my code, namely, clear
>foo.tpl, using all cache_id's that start with the groups sports|basketball.
>
>In my original post, I demonstrated how this does clear
>foo.tpl/sports/basketball but not foo.tpl/sports/basketball/somedeepergroup
>
>Greetings,
>Ivo
>
>- --
>Ivo Jansch <ivo@ibuildings.nl>
>ibuildings.nl BV - information technology
>http://www.ibuildings.nl
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (MingW32)
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
>iD8DBQFDKBwG95NUnGFZm9cRAu4dAJ93QuIfper7aitsLDfHQCllh8m+3wCfUZez
>RbeAccO/UvUabXjJYV8JXX8=
>=dCN+
>-----END PGP SIGNATURE-----
>
>
>
Navigation:
[Reply to this message]
|