mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
16.09.2013
|
||||||
|
- bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320)
|
||||||
|
|
||||||
13.09.2013
|
13.09.2013
|
||||||
- bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)
|
- bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)
|
||||||
|
|
||||||
|
@@ -147,6 +147,11 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
|
|||||||
} else {
|
} else {
|
||||||
if (!$_template->compiled->exists || ($_template->smarty->force_compile && !$_template->compiled->isCompiled)) {
|
if (!$_template->compiled->exists || ($_template->smarty->force_compile && !$_template->compiled->isCompiled)) {
|
||||||
$_template->compileTemplateSource();
|
$_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) {
|
if ($this->smarty->debugging) {
|
||||||
Smarty_Internal_Debug::start_render($_template);
|
Smarty_Internal_Debug::start_render($_template);
|
||||||
@@ -156,7 +161,10 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
|
|||||||
if ($_template->mustCompile) {
|
if ($_template->mustCompile) {
|
||||||
// recompile and load again
|
// recompile and load again
|
||||||
$_template->compileTemplateSource();
|
$_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;
|
$_template->compiled->loaded = true;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user