From 8aa03c81a7fed2dd017ca00f0d0ee3e7a0d02305 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 8 Feb 2024 03:06:30 -0500 Subject: [PATCH] Improve cache miss calculation --- src/utils/redis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/redis.ts b/src/utils/redis.ts index 8bca80d..d54112e 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -85,7 +85,7 @@ if (config.redis?.enabled) { if (cache && cacheClient && cache.has(key)) { memoryCacheHits++; return Promise.resolve(cache.get(key)); - } else { + } else if (shouldClientCacheKey(key)) { memoryCacheMisses++; }