diff --git a/src/utils/redis.ts b/src/utils/redis.ts index 73000cb..1d33e81 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -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();