Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-11-17 23:43:45 +08:00
commit fcf7856431
2 changed files with 4 additions and 5 deletions

View file

@ -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)
}

View file

@ -57,6 +57,10 @@ func init() {
}
func InitDatabase(forceRebuild bool) (err error) {
ClearBlockCache()
DisableCache()
defer EnableCache()
util.IncBootProgress(2, "Initializing database...")
if forceRebuild {