mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
increase icon cache ttl to 3 days, remove pruned message when no icon pruned
This commit is contained in:
parent
82042e0b99
commit
bdc086c285
1 changed files with 4 additions and 2 deletions
|
@ -24,7 +24,7 @@ var (
|
|||
)
|
||||
|
||||
const (
|
||||
iconCacheTTL = 24 * time.Hour
|
||||
iconCacheTTL = 3 * 24 * time.Hour
|
||||
cleanUpInterval = time.Hour
|
||||
)
|
||||
|
||||
|
@ -77,8 +77,10 @@ func pruneExpiredIconCache() {
|
|||
nPruned++
|
||||
}
|
||||
}
|
||||
if nPruned > 0 {
|
||||
logging.Info().Int("pruned", nPruned).Msg("pruned expired icon cache")
|
||||
}
|
||||
}
|
||||
|
||||
func routeKey(r route.HTTPRoute) string {
|
||||
return r.ProviderName() + ":" + r.TargetName()
|
||||
|
|
Loading…
Add table
Reference in a new issue