- optimization improve speed of filetime checks on extends and extendsall resource

This commit is contained in:
uwetews
2015-12-21 02:18:27 +01:00
parent 3548de5fa1
commit efaa61cfb6
6 changed files with 49 additions and 15 deletions
+10
View File
@@ -240,6 +240,16 @@ abstract class Smarty_Resource
return $resource->buildUniqueResourceName($smarty, $name);
}
/*
* Check if resource must check time stamps when when loading complied or cached templates.
* Resources like 'extends' which use source components my disable timestamp checks on own resource.
*
* @return bool
*/
public function checkTimestamps() {
return true;
}
/**
* initialize Source Object for given resource
* wrapper for backward compatibility to versions < 3.1.22