diff --git a/src/utils/redis.ts b/src/utils/redis.ts index e158250..05c1b99 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -410,7 +410,7 @@ async function setupCacheClientListener(cacheClient: RedisClientType, lastInvalidation = Date.now(); } - ttlCache.get(key); + ttlCache.delete(key); // To tell it to not save the result of this currently running request if (key && activeRequestPromises[key] !== undefined) {