summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-05-22 14:52:20 +0200
committerGitHub <noreply@github.com>2017-05-22 14:52:20 +0200
commitcc5393f5360d8950a9f46ad780d548031f36ef39 (patch)
tree8990c6d15e44438263aadc104da39858921525ec
parentecd299e8dea676a734932b5704a4b2bca9b285fa (diff)
parentb744639136d06a7f80752dd4be769de6042a1506 (diff)
downloadnextcloud-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.php3
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();