Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Problems with cache and compiled

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
mwaack
Smarty n00b


Joined: 01 Mar 2017
Posts: 3

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:   
Post new topic   Reply to topic    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