[smarty-php] r4898 committed - - bugfix calling a new created cache file with fetch() and Smarty::CA...

3 views
Skip to first unread message

smart...@googlecode.com

unread,
Oct 15, 2014, 4:22:39 PM10/15/14
to smart...@googlegroups.com
Revision: 4898
Author: Uwe....@googlemail.com
Date: Wed Oct 15 20:22:22 2014 UTC
Log: - bugfix calling a new created cache file with fetch() and
Smarty::CACHING_LIFETIME_SAVED multiple times did fail (forum 22350)

https://code.google.com/p/smarty-php/source/detail?r=4898

Modified:
/trunk/distribution/change_log.txt
/trunk/distribution/libs/sysplugins/smarty_internal_template.php

=======================================
--- /trunk/distribution/change_log.txt Tue Oct 14 22:29:58 2014 UTC
+++ /trunk/distribution/change_log.txt Wed Oct 15 20:22:22 2014 UTC
@@ -1,4 +1,7 @@
===== 3.1.21-dev ===== (xx.xx.2014)
+ 15.10.2014
+ - bugfix calling a new created cache file with fetch() and
Smarty::CACHING_LIFETIME_SAVED multiple times did fail (forum 22350)
+
14.10.2014
- bugfix any tag placed within "<script language=php>" will throw a
security exception to close all thinkable holes
- bugfix classmap in root composer.json should start at "libs/..."
=======================================
--- /trunk/distribution/libs/sysplugins/smarty_internal_template.php Fri
Jun 6 02:40:04 2014 UTC
+++ /trunk/distribution/libs/sysplugins/smarty_internal_template.php Wed
Oct 15 20:22:22 2014 UTC
@@ -231,6 +231,7 @@
// don't write cache file
return false;
}
+ $this->cached->timestamp = time();
$this->properties['cache_lifetime'] = $this->cache_lifetime;
$this->properties['unifunc'] = 'content_' .
str_replace(array('.', ','), '_', uniqid('', true));
$content = $this->createTemplateCodeFrame($content, true);
Reply all
Reply to author
Forward
0 new messages