mirror of
https://github.com/woodchen-ink/random-api-go.git
synced 2025-07-18 13:52:02 +08:00
调整S3存储的刷新间隔时间,从每6小时改为每24小时,以统一与其他数据源的刷新策略。
This commit is contained in:
parent
4150df03cf
commit
d7c60d578c
@ -300,7 +300,7 @@ func (p *Preloader) shouldPeriodicRefresh(dataSource *model.DataSource) bool {
|
|||||||
case "lankong":
|
case "lankong":
|
||||||
refreshInterval = 24 * time.Hour // 兰空图床每24小时刷新一次
|
refreshInterval = 24 * time.Hour // 兰空图床每24小时刷新一次
|
||||||
case "s3":
|
case "s3":
|
||||||
refreshInterval = 6 * time.Hour // S3存储每6小时刷新一次
|
refreshInterval = 24 * time.Hour // S3存储每24小时刷新一次
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user