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-06 11:49:54 +08:00
parent 37773b94b8
commit 18289dff86
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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