mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 12:37:00 +03:00
Fix cache invalidation with compression enabled
This commit is contained in:
@@ -365,7 +365,9 @@ async function setupCacheClientListener(cacheClient: RedisClientType,
|
||||
if (keys) {
|
||||
lastInvalidationMessage = Date.now();
|
||||
|
||||
for (const key of keys) {
|
||||
for (let key of keys) {
|
||||
if (config.redis.useCompression) key = key.replace(/.c$/, "");
|
||||
|
||||
if (cache.delete(key)) {
|
||||
lastInvalidation = Date.now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user