Simplify opcache test

This commit is contained in:
Matias Griese
2016-04-11 08:23:52 +03:00
parent 722e3cb55e
commit 9f7874a4f6

View File

@@ -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());
}
}
}