mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
⚡ 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:
parent
8383a4b3fa
commit
89a595f9c6
3 changed files with 67 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue