mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- bugfix under HHVM temporary cache file must only be created when caches template was updated
This commit is contained in:
@@ -96,7 +96,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
|
|||||||
* used in included file
|
* used in included file
|
||||||
*/
|
*/
|
||||||
$_smarty_tpl = $_template;
|
$_smarty_tpl = $_template;
|
||||||
if ($update && defined('HHVM_VERSION')) {
|
if ($update && strpos(phpversion(), 'hhvm') !== false) {
|
||||||
return Smarty_Internal_Extension_Hhvm::includeHhvm($_template, $_template->cached->filepath);
|
return Smarty_Internal_Extension_Hhvm::includeHhvm($_template, $_template->cached->filepath);
|
||||||
} else {
|
} else {
|
||||||
return @include $_template->cached->filepath;
|
return @include $_template->cached->filepath;
|
||||||
|
@@ -182,7 +182,7 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
|
|||||||
opcache_invalidate($_template->compiled->filepath);
|
opcache_invalidate($_template->compiled->filepath);
|
||||||
}
|
}
|
||||||
$_smarty_tpl = $_template;
|
$_smarty_tpl = $_template;
|
||||||
if (defined('HHVM_VERSION')) {
|
if (strpos(phpversion(), 'hhvm') !== false) {
|
||||||
Smarty_Internal_Extension_Hhvm::includeHhvm($_template, $_template->compiled->filepath);
|
Smarty_Internal_Extension_Hhvm::includeHhvm($_template, $_template->compiled->filepath);
|
||||||
} else {
|
} else {
|
||||||
include($_template->compiled->filepath);
|
include($_template->compiled->filepath);
|
||||||
|
Reference in New Issue
Block a user