Re: [SMARTY] Problem clearing cache groups
| From: | Monte Ohrt | Date: | Wed, 14 Sep 2005 13:49:00 +0000 |
| Subject: | Re: [SMARTY] Problem clearing cache groups | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13036@lists.php.net to get a copy of this message | ||
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 theI 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-----