mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix cache invalidation with compression enabled
This commit is contained in:
parent
09997d82ed
commit
a74189b287
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue