diff --git a/src/utils/redis.ts b/src/utils/redis.ts index 3eef756..71b35a8 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -103,8 +103,6 @@ if (config.redis?.enabled) { return Promise.resolve(cache.get(key)); } else if (shouldClientCacheKey(key)) { memoryCacheMisses++; - } else { - memoryCacheUncachedMisses++; } if (memoryCacheHits + memoryCacheMisses > 50000) { @@ -189,6 +187,9 @@ if (config.redis?.enabled) { return; } + // For tracking + if (!shouldClientCacheKey(key)) memoryCacheUncachedMisses++; + const start = Date.now(); activeRequests++;