diff --git a/lib/Service/OpenAiSettingsService.php b/lib/Service/OpenAiSettingsService.php index 62d2bca5..415427fd 100644 --- a/lib/Service/OpenAiSettingsService.php +++ b/lib/Service/OpenAiSettingsService.php @@ -63,7 +63,7 @@ public function __construct( public function invalidateModelsCache(): void { $cache = $this->cacheFactory->createDistributed(Application::APP_ID); - $cache->remove(Application::MODELS_CACHE_KEY); + $cache->clear(Application::MODELS_CACHE_KEY); } ////////////////////////////////////////////