mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 改进重建索引
This commit is contained in:
parent
a70fc3ec33
commit
129d64864b
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,6 @@ func ReloadUI() {
|
||||||
|
|
||||||
func FullReindex() {
|
func FullReindex() {
|
||||||
task.PrependTask(task.DatabaseIndexFull, fullReindex)
|
task.PrependTask(task.DatabaseIndexFull, fullReindex)
|
||||||
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func fullReindex() {
|
func fullReindex() {
|
||||||
|
|
@ -527,6 +526,7 @@ func fullReindex() {
|
||||||
sql.EnableCache()
|
sql.EnableCache()
|
||||||
treenode.SaveBlockTree(true)
|
treenode.SaveBlockTree(true)
|
||||||
LoadFlashcards()
|
LoadFlashcards()
|
||||||
|
IndexRefs()
|
||||||
debug.FreeOSMemory()
|
debug.FreeOSMemory()
|
||||||
util.ReloadUI()
|
util.ReloadUI()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue