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