Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

clearing cache

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Troublegum
Smarty Rookie


Joined: 07 Sep 2003
Posts: 33
Location: Germany

PostPosted: Sat Nov 08, 2003 3:57 pm    Post subject: clearing cache Reply with quote

Sometimes, I want to clear the cache of a specific template.
$tpl->clear_cache('showresults');
But that does NOT delete all cached versions (I use various cache_ids) of the template 'showresults'.
If I use $tpl->clear_cache(null, 'de'); all cached templates with the cachegroup 'de' will be deleted. But that is not what I want.

I want to delete only the cached files of the template 'showresults'.
How do I do that?

And this does not work either.
$tpl->clear_cache('showresults', null, null, 123);
I tried to delete all cached files of 'showresults' with ANY cacheid and any compileid that are older than 123 seconds. Is that possible?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP