From ba7c33a2bba21492007785981c5f75c95864c37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <36558727+Xhofe@users.noreply.github.com> Date: Tue, 29 Dec 2020 13:54:08 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=20=E9=85=8D=E7=BD=AE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf.yml.example | 2 +- conf/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.yml.example b/conf.yml.example index 559474b4..94a1c7c8 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 e07abe3b..9426a8b8 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"`