Fix cache invalidation with compression enabled

This commit is contained in:
Ajay 2024-02-09 14:19:56 -05:00
parent 09997d82ed
commit a74189b287

View file

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