From d7f7ce60a8b0130a7f9b4acf1404d7e316067832 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 7 Feb 2026 10:10:30 +0800 Subject: [PATCH] :art: Clean code https://github.com/siyuan-note/siyuan/pull/16892 Signed-off-by: Daniel <845765@qq.com> --- kernel/cache/asset.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cache/asset.go b/kernel/cache/asset.go index 838a189aa..9dc63ea0e 100644 --- a/kernel/cache/asset.go +++ b/kernel/cache/asset.go @@ -89,6 +89,7 @@ func GetAssetHash(hash string) *AssetHash { if !filelock.IsExist(filepath.Join(util.DataDir, asset.Path)) { // 文件不存在,清理缓存 delete(assetHashCache, hash) + delete(assetPathHashCache, asset.Path) return nil } return asset