mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- improvement removed unnecessary sha1()
(and added previously forgotten templates for ClearCompileTests)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user