Skip to content

Commit f841d81

Browse files
committed
Fix ttl cache key not properly cleared
1 parent b2f7e1b commit f841d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/redis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ async function setupCacheClientListener(cacheClient: RedisClientType,
410410
lastInvalidation = Date.now();
411411
}
412412

413-
ttlCache.get(key);
413+
ttlCache.delete(key);
414414

415415
// To tell it to not save the result of this currently running request
416416
if (key && activeRequestPromises[key] !== undefined) {

0 commit comments

Comments
 (0)