From b0eaa1d40f5d9581100628d8f9c81c9a411d2b4e Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 15 Dec 2025 16:22:41 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor:=20Enhance=20cached=20e?= =?UTF-8?q?ndpoints=20config=20handling=20for=20GPT=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/services/Config/getEndpointsConfig.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/server/services/Config/getEndpointsConfig.js b/api/server/services/Config/getEndpointsConfig.js index 82c8f01abe..8804fb7d3d 100644 --- a/api/server/services/Config/getEndpointsConfig.js +++ b/api/server/services/Config/getEndpointsConfig.js @@ -19,7 +19,11 @@ async function getEndpointsConfig(req) { const cache = getLogStores(CacheKeys.CONFIG_STORE); const cachedEndpointsConfig = await cache.get(CacheKeys.ENDPOINT_CONFIG); if (cachedEndpointsConfig) { - return cachedEndpointsConfig; + if (cachedEndpointsConfig.gptPlugins) { + await cache.delete(CacheKeys.ENDPOINT_CONFIG); + } else { + return cachedEndpointsConfig; + } } const appConfig = req.config ?? (await getAppConfig({ role: req.user?.role }));