diff --git a/change_log.txt b/change_log.txt index c0212b3c..5e47dab4 100644 --- a/change_log.txt +++ b/change_log.txt @@ -9,6 +9,7 @@ - Renamed a couple of internal classes - code cleanup for merging compiled templates - couple of runtime optimizations (still not all done) +- update of getCachedTimestamp() 12/19/2009 - bugfix on comment lines in config files diff --git a/libs/sysplugins/smarty_internal_cacheresource_file.php b/libs/sysplugins/smarty_internal_cacheresource_file.php index d4d9baf7..a76cb50f 100644 --- a/libs/sysplugins/smarty_internal_cacheresource_file.php +++ b/libs/sysplugins/smarty_internal_cacheresource_file.php @@ -38,8 +38,8 @@ class Smarty_Internal_CacheResource_File { */ public function getCachedTimestamp($template) { - return @filemtime($template->getCachedFilepath()); - // return ($template->getCachedFilepath() && file_exists($template->getCachedFilepath())) ? filemtime($template->getCachedFilepath()) : false ; + //return @filemtime($template->getCachedFilepath()); + return ($template->getCachedFilepath() && file_exists($template->getCachedFilepath())) ? filemtime($template->getCachedFilepath()) : false ; } /**