From 4ca786c6a94b863edda394e6cc0ff3362611b903 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 11 Dec 2023 17:33:42 +0100 Subject: [PATCH] fixes #2061 disable opcache during upgrade --- upgrade.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/upgrade.php b/upgrade.php index e500ef3ea..9577c06d7 100644 --- a/upgrade.php +++ b/upgrade.php @@ -6,6 +6,14 @@ // | file that was distributed with this source code. | // +-----------------------------------------------------------------------+ +// right after the overwrite of previous version files by the unzip in the administration, +// PHP engine might still have old files in cache. We do not want to use the cache and +// force reload of all application files. Thus we disable opcache. +if (function_exists('ini_set')) +{ + @ini_set('opcache.enable', 0); +} + define('PHPWG_ROOT_PATH', './'); // load config file