🎨 调整数据库缓存

This commit is contained in:
Liang Ding
2023-02-09 17:18:29 +08:00
parent 6a5617dcc1
commit 19f44148d4
13 changed files with 17 additions and 22 deletions

View File

@@ -105,6 +105,11 @@ func FlushQueue() {
context := map[string]interface{}{eventbus.CtxPushMsg: eventbus.CtxPushMsgToStatusBar}
total := len(ops)
if 512 < total {
disableCache()
defer enableCache()
}
for i, op := range ops {
if util.IsExiting {
return