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>
This commit is contained in:
parent
1db93ec7c5
commit
b744639136
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue