Browse Source

:art: Reset virtual block ref cache after indexing refs https://github.com/siyuan-note/siyuan/issues/10842

Daniel 1 year ago
parent
commit
dec9831a21
1 changed files with 2 additions and 0 deletions
  1. 2 0
      kernel/model/index.go

+ 2 - 0
kernel/model/index.go

@@ -268,6 +268,8 @@ func IndexRefs() {
 	}
 	logging.LogInfof("resolved refs [%d] in [%dms]", size, time.Now().Sub(start).Milliseconds())
 	util.PushStatusBar(fmt.Sprintf(Conf.Language(55), i))
+
+	ResetVirtualBlockRefCache()
 }
 
 // IndexEmbedBlockJob 嵌入块支持搜索 https://github.com/siyuan-note/siyuan/issues/7112