mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-17 14:20:25 +08:00
缓存策略增加预热超时时间设置(默认20分钟)
This commit is contained in:
@@ -61,6 +61,7 @@ func (this *UpdateAction) RunPost(params struct {
|
||||
CapacityJSON []byte
|
||||
MaxSizeJSON []byte
|
||||
SyncCompressionCache bool
|
||||
FetchTimeoutJSON []byte
|
||||
|
||||
Description string
|
||||
IsOn bool
|
||||
@@ -122,7 +123,7 @@ func (this *UpdateAction) RunPost(params struct {
|
||||
}
|
||||
|
||||
// 校验缓存条件
|
||||
refs := []*serverconfigs.HTTPCacheRef{}
|
||||
var refs = []*serverconfigs.HTTPCacheRef{}
|
||||
if len(params.RefsJSON) > 0 {
|
||||
err = json.Unmarshal(params.RefsJSON, &refs)
|
||||
if err != nil {
|
||||
@@ -146,6 +147,7 @@ func (this *UpdateAction) RunPost(params struct {
|
||||
Type: params.Type,
|
||||
OptionsJSON: optionsJSON,
|
||||
SyncCompressionCache: params.SyncCompressionCache,
|
||||
FetchTimeoutJSON: params.FetchTimeoutJSON,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
Reference in New Issue
Block a user