From 29ce042916c6b43b616e2c770396b9abfe3a1770 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Mon, 9 Dec 2024 10:38:50 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07867=20-=20Issue=20with=20MTP=20offline?= =?UTF-8?q?=20(reset=20cache=20in=20metamodel)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/metamodel.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 8f9808cc2..08a503065 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -7557,6 +7557,13 @@ abstract class MetaModel require_once(APPROOT.'core/userrights.class.inc.php'); UserRights::FlushPrivileges(); + + // Reset the opcache since otherwise the PHP "model" files may still be cached !! + if (function_exists('opcache_reset')) + { + // Zend opcode cache + opcache_reset(); + } } /**