An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Clear all cached data when open the user guide
Danieldfb331e58901
diff --git a/kernel/model/mount.go b/kernel/model/mount.goindex 4d56de436b..fb2e061890 100644--- a/kernel/model/mount.go+++ b/kernel/model/mount.go@@ -30,6 +30,7 @@ import ("github.com/88250/lute/ast""github.com/siyuan-note/filelock""github.com/siyuan-note/logging"+ "github.com/siyuan-note/siyuan/kernel/cache""github.com/siyuan-note/siyuan/kernel/task""github.com/siyuan-note/siyuan/kernel/util")@@ -247,6 +248,11 @@ func Mount(boxID string) (alreadyMount bool, err error) {return}+ // 清除所有缓存,确保重开用户指南时数据是最新的+ cache.ClearTreeCache()+ cache.ClearDocsIAL()+ cache.ClearBlocksIAL()+avDirPath := filepath.Join(util.WorkingDir, "guide", boxID, "storage", "av")if filelock.IsExist(avDirPath) {if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); err != nil {