diff --git a/platforms/minigame/common/engine/cache-manager.js b/platforms/minigame/common/engine/cache-manager.js index 47963569751..7777744dbb1 100644 --- a/platforms/minigame/common/engine/cache-manager.js +++ b/platforms/minigame/common/engine/cache-manager.js @@ -191,7 +191,7 @@ const cacheManager = { } for (let i = 0, l = caches.length; i < l; i++) { const cacheKey = `${cc.assetManager.utils.getUuidFromURL(caches[i].originUrl)}@native`; - cc.assetManager.files.remove(cacheKey); + cc.assetManager._files$.remove(cacheKey); this.cachedFiles.remove(caches[i].originUrl); } diff --git a/platforms/runtime/common/engine/cache-manager.js b/platforms/runtime/common/engine/cache-manager.js index bfba43897e4..a49613ffdae 100644 --- a/platforms/runtime/common/engine/cache-manager.js +++ b/platforms/runtime/common/engine/cache-manager.js @@ -184,7 +184,7 @@ const cacheManager = { } for (let i = 0, l = caches.length; i < l; i++) { const cacheKey = `${cc.assetManager.utils.getUuidFromURL(caches[i].originUrl)}@native`; - cc.assetManager.files.remove(cacheKey); + cc.assetManager._files$.remove(cacheKey); this.cachedFiles.remove(caches[i].originUrl); }