 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
Eino Smarty n00b
Joined: 16 Apr 2012 Posts: 1
|
Posted: Mon Apr 16, 2012 9:12 am Post subject: Caching problem (smarty 2) |
|
|
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 |
|
|
|
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
|