- update of getCachedTimestamp()

This commit is contained in:
Uwe.Tews
2009-12-27 19:12:51 +00:00
parent 44dd7830dd
commit 36da15cee8
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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 ;
}
/**