mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-28 18:02:07 +02:00
code cleanup and optimizations 3.1.32-dev-34
This commit is contained in:
@@ -93,7 +93,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
|
||||
{
|
||||
$_smarty_tpl->cached->valid = false;
|
||||
if ($update && defined('HHVM_VERSION')) {
|
||||
eval("?>" . file_get_contents($_smarty_tpl->cached->filepath));
|
||||
eval('?>' . file_get_contents($_smarty_tpl->cached->filepath));
|
||||
return true;
|
||||
} else {
|
||||
return @include $_smarty_tpl->cached->filepath;
|
||||
@@ -116,7 +116,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource
|
||||
$_template->smarty) === true
|
||||
) {
|
||||
if (function_exists('opcache_invalidate') &&
|
||||
(!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api"))) < 1
|
||||
(!function_exists('ini_get') || strlen(ini_get('opcache.restrict_api'))) < 1
|
||||
) {
|
||||
opcache_invalidate($_template->cached->filepath, true);
|
||||
} else if (function_exists('apc_compile_file')) {
|
||||
|
||||
Reference in New Issue
Block a user