- bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320)

This commit is contained in:
Uwe.Tews@googlemail.com
2013-09-16 18:47:04 +00:00
parent a0dcb5611b
commit bf8275ee20
2 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
16.09.2013
- bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320)
13.09.2013
- bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)

View File

@@ -147,6 +147,11 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
} else {
if (!$_template->compiled->exists || ($_template->smarty->force_compile && !$_template->compiled->isCompiled)) {
$_template->compileTemplateSource();
$code = file_get_contents($_template->compiled->filepath);
eval("?>" . $code);
unset($code);
$_template->compiled->loaded = true;
$_template->compiled->isCompiled = true;
}
if ($this->smarty->debugging) {
Smarty_Internal_Debug::start_render($_template);
@@ -156,7 +161,10 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
if ($_template->mustCompile) {
// recompile and load again
$_template->compileTemplateSource();
include($_template->compiled->filepath);
$code = file_get_contents($_template->compiled->filepath);
eval("?>" . $code);
unset($code);
$_template->compiled->isCompiled = true;
}
$_template->compiled->loaded = true;
} else {