mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +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)) {
|
||||
memoryCacheHits++;
|
||||
return Promise.resolve(cache.get(key));
|
||||
} else {
|
||||
} else if (shouldClientCacheKey(key)) {
|
||||
memoryCacheMisses++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user