diff --git a/conf.yml.example b/conf.yml.example index 559474b4268..94a1c7c8638 100644 --- a/conf.yml.example +++ b/conf.yml.example @@ -11,7 +11,7 @@ server: search: true #是否开启搜索接口,开启搜索之后密码和根目录都会失效,所以前端暂时不做搜索 static: dist #前端文件目录 cache: - cache: true #是否开启缓存 + enable: true #是否开启缓存 expiration: 5 #缓存失效时间(单位:分钟) cleanup_interval: 10 #清理失效缓存间隔 refresh_password: password #手动清理缓存密码 diff --git a/conf/config.go b/conf/config.go index e07abe3bbf7..9426a8b802d 100644 --- a/conf/config.go +++ b/conf/config.go @@ -16,7 +16,7 @@ type Config struct { Static string `yaml:"static"` } `yaml:"server"` Cache struct{ - Enable bool `yaml:"cache"` + Enable bool `yaml:"enable"` Expiration int `yaml:"expiration"` CleanupInterval int `yaml:"cleanup_interval"` RefreshPassword string `yaml:"refresh_password"`