mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Fix ttl cache key not properly cleared
This commit is contained in:
@@ -410,7 +410,7 @@ async function setupCacheClientListener(cacheClient: RedisClientType,
|
|||||||
lastInvalidation = Date.now();
|
lastInvalidation = Date.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
ttlCache.get(key);
|
ttlCache.delete(key);
|
||||||
|
|
||||||
// To tell it to not save the result of this currently running request
|
// To tell it to not save the result of this currently running request
|
||||||
if (key && activeRequestPromises[key] !== undefined) {
|
if (key && activeRequestPromises[key] !== undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user