mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 03:57:06 +03:00
Improve cache miss calculation
This commit is contained in:
@@ -85,7 +85,7 @@ if (config.redis?.enabled) {
|
|||||||
if (cache && cacheClient && cache.has(key)) {
|
if (cache && cacheClient && cache.has(key)) {
|
||||||
memoryCacheHits++;
|
memoryCacheHits++;
|
||||||
return Promise.resolve(cache.get(key));
|
return Promise.resolve(cache.get(key));
|
||||||
} else {
|
} else if (shouldClientCacheKey(key)) {
|
||||||
memoryCacheMisses++;
|
memoryCacheMisses++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user