From daa7fc630028ed9ff6c08bbccad0ff869dcc2253 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 17 Nov 2022 23:27:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:bug:=20=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=B1=82=E7=BC=93=E5=AD=98=E5=A4=B1=E6=95=88=20Fix=20https://g?= =?UTF-8?q?ithub.com/siyuan-note/siyuan/issues/6637?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/sql/database.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/sql/database.go b/kernel/sql/database.go index 6be61e024..a5f748ab1 100644 --- a/kernel/sql/database.go +++ b/kernel/sql/database.go @@ -57,6 +57,10 @@ func init() { } func InitDatabase(forceRebuild bool) (err error) { + ClearBlockCache() + DisableCache() + defer EnableCache() + util.IncBootProgress(2, "Initializing database...") if forceRebuild { From 8654accc3ddf60f428e5220090f5344ce4105396 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 17 Nov 2022 23:36:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:art:=20=E5=8F=8D=E9=93=BE=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E6=94=AF=E6=8C=81=E5=85=B3=E9=94=AE=E5=AD=97=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=20https://github.com/siyuan-note/siyuan/issues/6178?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/backlink.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go index e5cf2602c..de039fe02 100644 --- a/kernel/model/backlink.go +++ b/kernel/model/backlink.go @@ -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) }