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:
Ajay 2024-04-11 17:04:17 -04:00
parent f43e59250f
commit 1009fff9e9

View file

@ -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();