mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 19:18:06 +01:00
🐛 Document content not updated after snapshot rollback https://github.com/siyuan-note/siyuan/issues/17026
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
1c81eabaf7
commit
d007668d10
2 changed files with 8 additions and 2 deletions
|
|
@ -797,6 +797,10 @@ func VacuumDataIndex() {
|
|||
}
|
||||
|
||||
func FullReindex() {
|
||||
cache.ClearTreeCache()
|
||||
cache.ClearDocsIAL()
|
||||
cache.ClearBlocksIAL()
|
||||
|
||||
task.AppendTask(task.DatabaseIndexFull, fullReindex)
|
||||
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
||||
go func() {
|
||||
|
|
@ -804,8 +808,6 @@ func FullReindex() {
|
|||
ResetVirtualBlockRefCache()
|
||||
}()
|
||||
task.AppendTaskWithTimeout(task.DatabaseIndexEmbedBlock, 30*time.Second, autoIndexEmbedBlock)
|
||||
cache.ClearDocsIAL()
|
||||
cache.ClearBlocksIAL()
|
||||
task.AppendTask(task.ReloadUI, util.ReloadUI)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue