diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 88044fbf7b6f5..82dbbc65089c9 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -543,6 +543,11 @@ public function enableApp(string $appId, bool $forceEnable = false): void { ManagerEvent::EVENT_APP_ENABLE, $appId )); $this->clearAppsCache(); + + if (function_exists('apcu_delete') && class_exists(\APCUIterator::class)) { + $apcuPrefix = 'composer_autoload_' . md5(\OC::$SERVERROOT . '_' . \OC::$VERSION_MTIME); + apcu_delete(new \APCUIterator('#^' . $apcuPrefix . '#')); + } } /**