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,