Reply to Re: [SMARTY] Problem clearing cache groups

Your name:

Reply:


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-----
>
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация