Invalidate OP cache before getting file contents

This commit is contained in:
mattpass
2020-06-24 09:23:28 +01:00
parent bfeed44372
commit dcf646bfec
8 changed files with 35 additions and 7 deletions

View File

@@ -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