From a397cab61cbdebd19de010eabd5c7539504220c6 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:21:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E7=BC=93=E5=AD=98=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#6364)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/6362 --- backend/init/cache/cache.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/init/cache/cache.go b/backend/init/cache/cache.go index 1b64e1f72..3d2645786 100644 --- a/backend/init/cache/cache.go +++ b/backend/init/cache/cache.go @@ -1,6 +1,7 @@ package cache import ( + "os" "time" "github.com/1Panel-dev/1Panel/backend/global" @@ -10,7 +11,8 @@ import ( func Init() { c := global.CONF.System.Cache - + _ = os.RemoveAll(c) + _ = os.Mkdir(c, 0644) options := badger.Options{ Dir: c, ValueDir: c,