N°7867 - Issue with MTP offline (reset cache in metamodel)

This commit is contained in:
Eric Espie
2024-12-09 10:38:50 +01:00
parent 83539d6d4c
commit 29ce042916

View File

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