Improve cache miss calculation

This commit is contained in:
Ajay
2024-02-08 03:06:30 -05:00
parent e8879f66b1
commit 8aa03c81a7

View File

@@ -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++;
}