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

Problems with cache and compiled

 
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
mwaack
Smarty Rookie


Joined: 01 Mar 2017
Posts: 7

PostPosted: Wed Mar 01, 2017 1:36 pm    Post subject: Problems with cache and compiled Reply with quote

Hi all,

my problem is tha i can clear all cache/compiles but not a specific one.
(smarty 3.1.30)

Code:

$smarty->caching = true;
$smarty->cache_lifetime = 3600;
$smarty->setCompileCheck(false);
$smarty->setCompileDir(...);
$smarty->setCacheDir(...);

$smarty->fetch('mytemplate','myid');


This works fine:
Code:
$smarty->clearAllCache();
$smarty->clearCompiledTemplate();


But i dont want clear all, just for the template 'mytemplate'
I tried
Code:
$smarty->clearCache('mytemplate','myid')
$smarty->clearCompiledTemplate('mytemplate')


But its not working. caches and compiles still there.

Any idea whtas going wrong?
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