From 9f7874a4f6874ecaebaa4b78a4698c75de721bc5 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 11 Apr 2016 08:23:52 +0300 Subject: [PATCH] Simplify opcache test --- system/src/Grav/Common/File/CompiledFile.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/system/src/Grav/Common/File/CompiledFile.php b/system/src/Grav/Common/File/CompiledFile.php index f990ad8c7..70dfa6a7f 100644 --- a/system/src/Grav/Common/File/CompiledFile.php +++ b/system/src/Grav/Common/File/CompiledFile.php @@ -70,12 +70,6 @@ trait CompiledFile // Compile cached file into bytecode cache if (function_exists('opcache_compile_file')) { opcache_compile_file($file->filename()); - } elseif (function_exists('opcache_invalidate')) { - // PHP <5.5.5 - opcache_invalidate($file->filename(), true); - } elseif (function_exists('apc_compile_file')) { - // PHP 5.4 - apc_compile_file($file->filename()); } } }