mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
fcf7856431
2 changed files with 4 additions and 5 deletions
|
|
@ -387,11 +387,6 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode
|
|||
tmpBackmentions := toFlatTree(mentionRefs, 0, "backlink")
|
||||
for _, l := range tmpBackmentions {
|
||||
l.Blocks = nil
|
||||
if "" != mentionKeyword {
|
||||
if !strings.Contains(l.Name, mentionKeyword) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
backmentions = append(backmentions, l)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,10 @@ func init() {
|
|||
}
|
||||
|
||||
func InitDatabase(forceRebuild bool) (err error) {
|
||||
ClearBlockCache()
|
||||
DisableCache()
|
||||
defer EnableCache()
|
||||
|
||||
util.IncBootProgress(2, "Initializing database...")
|
||||
|
||||
if forceRebuild {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue