mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 04:54:32 +08:00
修复在未初始化缓存设置时添加缓存条件产生的panic错误
This commit is contained in:
@@ -41,6 +41,10 @@ func (this *UpdateRefsAction) RunPost(params struct {
|
||||
|
||||
// 校验配置
|
||||
var cacheConfig = webConfig.Cache
|
||||
if cacheConfig == nil {
|
||||
this.Success()
|
||||
return
|
||||
}
|
||||
|
||||
var refs = []*serverconfigs.HTTPCacheRef{}
|
||||
err = json.Unmarshal(params.RefsJSON, &refs)
|
||||
|
||||
Reference in New Issue
Block a user