- improvement removed unnecessary sha1()

(and added previously forgotten templates for ClearCompileTests)
This commit is contained in:
rodneyrehm
2011-10-20 20:28:21 +00:00
parent 922017c7fa
commit 6470e6a2c9
6 changed files with 7 additions and 6 deletions
@@ -154,7 +154,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
// remove from template cache
$tpl->source; // have the template registered before unset()
$_templateId = sha1($tpl->source->unique_resource . $tpl->cache_id . $tpl->compile_id);
$_templateId = $tpl->source->unique_resource . $tpl->cache_id . $tpl->compile_id;
unset($smarty->template_objects[$_templateId]);
if ($tpl->source->exists) {