Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve update time of database bound document blocks https://github.com/siyuan-note/siyuan/issues/11042

Daniel3403bdca999e
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 6d83031726..51dc1eec98 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1245,6 +1245,7 @@ func createdUpdated(node *ast.Node) {
parents := treenode.ParentNodes(node)
for _, parent := range parents { // 更新所有父节点的更新时间字段
parent.SetIALAttr("updated", updated)
+ cache.PutBlockIAL(parent.ID, parse.IAL2Map(parent.KramdownIAL))
}
}