mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 09:18:51 +02:00
increase icon cache ttl to 3 days, remove pruned message when no icon pruned
This commit is contained in:
@@ -24,7 +24,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
iconCacheTTL = 24 * time.Hour
|
iconCacheTTL = 3 * 24 * time.Hour
|
||||||
cleanUpInterval = time.Hour
|
cleanUpInterval = time.Hour
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -77,7 +77,9 @@ func pruneExpiredIconCache() {
|
|||||||
nPruned++
|
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 {
|
func routeKey(r route.HTTPRoute) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user