Caching tree data to improve performance and reduce disk read and write operations https://github.com/siyuan-note/siyuan/issues/16961

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-02 18:25:52 +08:00
parent 8383a4b3fa
commit 89a595f9c6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 67 additions and 2 deletions

View file

@ -1647,6 +1647,7 @@ func removeDoc0(tree *parse.Tree, childrenDir string) {
treenode.RemoveBlockTreesByPathPrefix(childrenDir)
sql.RemoveTreePathQueue(tree.Box, childrenDir)
cache.RemoveDocIAL(tree.Path)
cache.RemoveTreeData(tree.ID)
return
}