aifalse 增加 清理缓存

This commit is contained in:
fumiama
2021-09-27 21:51:05 +08:00
parent 4df30a56a3
commit 1d469a40d5
3 changed files with 13 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ func newPools() *imgpool {
Pool: map[string][]*pixiv.Illust{},
Form: 0,
}
// 每次启动清理缓存
os.RemoveAll(cache.Path)
err := os.MkdirAll(cache.Path, 0755)
if err != nil {
panic(err)