diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.go index c70ee8ccb..d1060e9e8 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 }