Clearing cache groups problem

From: Date: Tue, 19 Nov 2002 10:33:34 +0000
Subject: Clearing cache groups problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6473@lists.php.net to get a copy of this message
Hi folks, I've come across a problem when using cache groups for some sections of my site. I have a news section which will always use the same .tpl file so i'm using the cache groups to define the news area group, then the individual news pages: $cache_id = "news|".$news_id; $template -> display('news.tpl',$cache_id); Thats all working nicely with a main folder 'news' containing sub-folders corresponding to the $news_id caches. However, when i'm in the admin area and i add a news item or edit an existing one i want to delete all the cached news pages ready for the new content. To do this the docs say use: $template->clear_cache(null,"news"); But for me this doesn't seem to work (on win2k or linux, both apache 1.3x servers with PHP4.2x). Furthermore, if i try: $template->clear_all_cache(); It only removes the caches that don't contain nested cache groups like those above. Is there something i'm missing here and should be doing? Thanks. Tom | Tom Beddard | Become Interactive Ltd. | T: 0141 585 6329 | www.becomeinteractive.co.uk

« previous php.smarty.general (#6473) next »