mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +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
37773b94b8
commit
18289dff86
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func LoadTree(boxID, p string, luteEngine *lute.Lute) (ret *parse.Tree, err erro
|
|||
}
|
||||
|
||||
ret, err = LoadTreeByData(data, boxID, p, luteEngine)
|
||||
if nil != err {
|
||||
if nil == err {
|
||||
cache.SetTreeData(rootID, data)
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue