mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-25 08:58:23 +03:00
Fix uncached misses tracking
This commit is contained in:
@@ -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++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user