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(); + } } /**