|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mwaack Smarty Rookie
Joined: 01 Mar 2017 Posts: 7
|
Posted: Wed Mar 01, 2017 1:36 pm Post subject: Problems with cache and compiled |
|
|
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 |
|
|
|
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
|