diff --git a/library/smarty/libs/sysplugins/smarty_internal_nocache_insert.php b/library/smarty/libs/sysplugins/smarty_internal_nocache_insert.php new file mode 100644 --- /dev/null +++ b/library/smarty/libs/sysplugins/smarty_internal_nocache_insert.php @@ -0,0 +1,49 @@ +assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . ",\$_smarty_tpl), true);?>"; + } else { + $_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl);?>"; + } + $_tpl = $_template; + while ($_tpl->parent instanceof Smarty_Internal_Template) { + $_tpl = $_tpl->parent; + } + + return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/"; + } +}