Skip to content

Commit

Permalink
fixed #17703 : fix mini game cache api error
Browse files Browse the repository at this point in the history
  • Loading branch information
MTZing committed Nov 15, 2024
1 parent bbb96cf commit cce492b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platforms/minigame/common/engine/cache-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion platforms/runtime/common/engine/cache-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit cce492b

Please sign in to comment.