diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-21 18:38:16 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-21 18:38:24 -0500 |
commit | b744639136d06a7f80752dd4be769de6042a1506 (patch) | |
tree | 45bc56ef96e7bdc43de81f70b5326033a4e6f269 /lib | |
parent | 1db93ec7c596e1e8466937540c8df8685138e4a9 (diff) | |
download | nextcloud-server-b744639136d06a7f80752dd4be769de6042a1506.tar.gz nextcloud-server-b744639136d06a7f80752dd4be769de6042a1506.zip |
Reset opcache if update is detected
This even works if opcache_reset is in the disabled_functions php.ini setting.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 38e9fb8e498..226aeeb727f 100644 --- a/lib/base.php +++ b/lib/base.php @@ -292,6 +292,9 @@ class OC { */ public static function checkUpgrade($showTemplate = true) { if (\OCP\Util::needUpgrade()) { + if (function_exists('opcache_reset')) { + opcache_reset(); + } $systemConfig = \OC::$server->getSystemConfig(); if ($showTemplate && !$systemConfig->getValue('maintenance', false)) { self::printUpgradePage(); |