From daa7fc630028ed9ff6c08bbccad0ff869dcc2253 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 17 Nov 2022 23:27:21 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E5=B1=82?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=A4=B1=E6=95=88=20Fix=20https://github.com?= =?UTF-8?q?/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 {