Merge pull request #5017 from nextcloud/stable12-5016

[stable12] Reset opcache if update is detected
pull/5063/head
Roeland Jago Douma 2017-05-23 11:36:58 +07:00 committed by GitHub
commit 446559979c
1 changed files with 3 additions and 0 deletions

@ -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();