mirror of
https://github.com/getgrav/grav.git
synced 2026-07-12 04:03:28 +02:00
Simplify opcache test
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user