mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix caching issues with one specific key form
.c regex was any character plus a c instead of intenced dot
This commit is contained in:
parent
f43e59250f
commit
1009fff9e9
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ async function setupCacheClientListener(cacheClient: RedisClientType,
|
|||
|
||||
const keys = Buffer.isBuffer(message) ? [message.toString()] : message;
|
||||
for (let key of keys) {
|
||||
if (config.redis.useCompression) key = key.replace(/.c$/, "");
|
||||
if (config.redis.useCompression) key = key.replace(/\.c$/, "");
|
||||
|
||||
if (cache.delete(key)) {
|
||||
lastInvalidation = Date.now();
|
||||
|
|
Loading…
Reference in a new issue