diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-05-22 14:52:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 14:52:20 +0200 |
commit | cc5393f5360d8950a9f46ad780d548031f36ef39 (patch) | |
tree | 8990c6d15e44438263aadc104da39858921525ec | |
parent | ecd299e8dea676a734932b5704a4b2bca9b285fa (diff) | |
parent | b744639136d06a7f80752dd4be769de6042a1506 (diff) | |
download | nextcloud-server-cc5393f5360d8950a9f46ad780d548031f36ef39.tar.gz nextcloud-server-cc5393f5360d8950a9f46ad780d548031f36ef39.zip |
Merge pull request #5016 from nextcloud/reset-opcache-on-updater-page-load
Reset opcache if update is detected
-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(); |