Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Caching problem (smarty 2)

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


Joined: 16 Apr 2012
Posts: 1

PostPosted: Mon Apr 16, 2012 9:12 am    Post subject: Caching problem (smarty 2) Reply with quote

Hi. I've got caching enabled the following way:

Code:
$smarty->force_compile = false;
$smarty->compile_check = true;
$smarty->caching = 2;
$smarty->cache_lifetime = 300;
$cache_id = md5 ( $_SERVER['REQUEST_URI'] );

$smarty->fetch($template_file, $cache_id );


The cached file is generated perfectly but everytime I refresh the page the cached files time stamp gets updated and the serialized array in the beginning of the file gets updated so that the expires timestamp gets updated and the cache never expires...

Any ideas?
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