From f73f992273c527e81af54c4a23369a4b27fa7cf6 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 10 Jul 2025 11:04:21 +0200 Subject: [PATCH] fix(cache): invalidate all cache with a prefix instead of deleting one key that we don't use anymore Signed-off-by: Julien Veyssier --- lib/Service/OpenAiSettingsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } ////////////////////////////////////////////