Add some logs to show size of cached lists on refetch

This commit is contained in:
Stedoss 2025-07-02 22:46:46 +01:00
parent 6e0e2c7864
commit 136cf5f15b

View File

@ -33,7 +33,7 @@ class GlobalCache(
fun updateCaches() { fun updateCaches() {
val stopwatch = StopWatch() val stopwatch = StopWatch()
stopwatch.start() stopwatch.start()
logger.info("Updating the cache!") logger.info("Updating the cache...")
runBlocking { runBlocking {
val rssFeedDeferred = async { rssService.generateFeed() } val rssFeedDeferred = async { rssService.generateFeed() }
@ -49,6 +49,8 @@ class GlobalCache(
stopwatch.stop() stopwatch.stop()
logger.info("Cache updated in {} seconds", String.format("%.2f", stopwatch.totalTimeSeconds)) logger.info("Cache updated in {} seconds", String.format("%.2f", stopwatch.totalTimeSeconds))
logger.info("[CACHE]: Similar replays count: {}", similarReplays?.size)
logger.info("[CACHE]: Suspicious scores count: {}", suspiciousScores?.size)
} }
} }