mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Refresh virtual block ref when closing box https://github.com/siyuan-note/siyuan/issues/11149#issuecomment-2106254491
This commit is contained in:
parent
b959cc2beb
commit
60380f5dee
4 changed files with 21 additions and 16 deletions
|
|
@ -503,6 +503,10 @@ func genTreeID(tree *parse.Tree) {
|
|||
func FullReindex() {
|
||||
task.AppendTask(task.DatabaseIndexFull, fullReindex)
|
||||
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
||||
go func() {
|
||||
sql.WaitForWritingDatabase()
|
||||
ResetVirtualBlockRefCache()
|
||||
}()
|
||||
task.AppendTaskWithTimeout(task.DatabaseIndexEmbedBlock, 30*time.Second, autoIndexEmbedBlock)
|
||||
cache.ClearDocsIAL()
|
||||
cache.ClearBlocksIAL()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue