mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 18:24:21 +01:00
🎨 Caching tree data to improve performance and reduce disk read operations https://github.com/siyuan-note/siyuan/issues/16961
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
6c60df3d55
commit
fb7e24161a
1 changed files with 1 additions and 0 deletions
|
|
@ -936,6 +936,7 @@ func RenameAsset(oldPath, newName string) (newPath string, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
cache.RemoveTreeData(util.GetTreeID(treeAbsPath))
|
||||
p := filepath.ToSlash(strings.TrimPrefix(treeAbsPath, filepath.Join(util.DataDir, notebook.ID)))
|
||||
tree, parseErr := filesys.LoadTreeByData(data, notebook.ID, p, luteEngine)
|
||||
if nil != parseErr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue