mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44: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 =====
|
||||
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)
|
||||
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user