diff --git a/internal/api/v1/favicon/cache.go b/internal/api/v1/favicon/cache.go index d138854..908a072 100644 --- a/internal/api/v1/favicon/cache.go +++ b/internal/api/v1/favicon/cache.go @@ -24,7 +24,7 @@ var ( ) const ( - iconCacheTTL = 24 * time.Hour + iconCacheTTL = 3 * 24 * time.Hour cleanUpInterval = time.Hour ) @@ -77,7 +77,9 @@ func pruneExpiredIconCache() { nPruned++ } } - logging.Info().Int("pruned", nPruned).Msg("pruned expired icon cache") + if nPruned > 0 { + logging.Info().Int("pruned", nPruned).Msg("pruned expired icon cache") + } } func routeKey(r route.HTTPRoute) string {