mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 08:44:02 +01:00
Invalidate OP cache before getting file contents
This commit is contained in:
@@ -59,6 +59,16 @@ class System
|
||||
return $context;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $path
|
||||
*/
|
||||
public function invalidateOPCache($path): void
|
||||
{
|
||||
if (function_exists('opcache_invalidate')) {
|
||||
opcache_invalidate($path, true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $fileLines
|
||||
* @param $changes
|
||||
|
||||
Reference in New Issue
Block a user