Fix ttl cache key not properly cleared

This commit is contained in:
Ajay 2024-04-22 00:53:09 -04:00
parent b2f7e1b39b
commit f841d8173b

View file

@ -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) {