diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-01-30 17:36:14 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-01-30 17:36:14 +0100 |
commit | 9104e028a399ed2bbda63204c7627d75f9f5f381 (patch) | |
tree | 45758241c917683abe8f346181197d1db42025fa /lib/private/Config.php | |
parent | 1638f89e8920798a731be6efec61e69dec5f74ac (diff) | |
download | nextcloud-server-9104e028a399ed2bbda63204c7627d75f9f5f381.tar.gz nextcloud-server-9104e028a399ed2bbda63204c7627d75f9f5f381.zip |
Remove deleteFromOpcodeCache & clearOpcodeCache
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Config.php')
-rw-r--r-- | lib/private/Config.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/Config.php b/lib/private/Config.php index c881e485006..f462bebaf58 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -265,10 +265,8 @@ class Config { flock($filePointer, LOCK_UN); fclose($filePointer); - // Try invalidating the opcache just for the file we wrote... - if (!\OC_Util::deleteFromOpcodeCache($this->configFilePath)) { - // But if that doesn't work, clear the whole cache. - \OC_Util::clearOpcodeCache(); + if (function_exists('opcache_invalidate')) { + @opcache_invalidate($this->configFilePath, true); } } } |