An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 虚拟引用 10 分钟缓存过期
Liang Ding7ee231f134d8
diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.goindex c70ee8ccb4..d1060e9e87 100644--- a/kernel/model/virutalref.go+++ b/kernel/model/virutalref.go@@ -21,6 +21,7 @@ import ("regexp""sort""strings"+ "time""github.com/88250/gulu""github.com/88250/lute"@@ -87,7 +88,7 @@ func putBlockVirtualRefKeywords(blockContent, blockID, docTitle string) (ret []s}ret = gulu.Str.RemoveDuplicatedElem(ret)- virtualBlockRefCache.Set(blockID, ret, 1)+ virtualBlockRefCache.SetWithTTL(blockID, ret, 1, 10*time.Minute)return}