Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code https://github.com/siyuan-note/siyuan/pull/16892

Danield7f7ce60a8b0
diff --git a/kernel/cache/asset.go b/kernel/cache/asset.go
index 838a189aa5..9dc63ea0e2 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