You are here: Problem clearing cache groups « Smarty Templates Posts « IT news, forums, messages
Problem clearing cache groups

Posted by Ivo Jansch on 09/29/88 11:26

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am following the docs on cachegroups, but cannot get it to work properly.

I render a template (using $smarty->fetch) 3 times, with these cache_ids:

/index
/index|lng=nl
/index|lng=de

(The url is the first group, a language is the second).

Now I call $smarty->clear_cache with the following cache_id:

/index

No I expect the cache to be cleared entirely, because this is my main
group. However, only the first page (the one without lng param) is
cleared from the cache. So the grouping seems not to work.

If I have a look at my cache dir, this is in it after the call to
clear_cache:

[root@nikita pages]# find
..
../%2Findex
../%2Findex/lng%3Dde
../%2Findex/lng%3Dde/%%16
../%2Findex/lng%3Dde/%%16/168
../%2Findex/lng%3Dde/%%16/168/1689F4FD%%test.tpl
../%2Findex/lng%3Dnl
../%2Findex/lng%3Dnl/%%16
../%2Findex/lng%3Dnl/%%16/168
../%2Findex/lng%3Dnl/%%16/168/1689F4FD%%test.tpl

So you can see that the 2 caches for the 2 subgroups remain.

Any idea what could cause this?

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

iD8DBQFDJbsM95NUnGFZm9cRAsocAKCyEf4Nyw2CGKWheyVKGXAGBVsBVgCg56dE
Vedq+8waalNRMwHBMKqxn/o=
=+U1E
-----END PGP SIGNATURE-----

 

Navigation:

[Reply to this 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

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