wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten

Home Page:https://wasmer.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registry response cache does not differentiate by registry URL

theduke opened this issue · comments

The cache used for registry API responses in WapmSource does not differentiate cache items by registry endpoint, leading to sharing of cache data between different registries, and confusing behaviour.

The cache should be updated to include the normalized registry URL in the cache path.

Relevant setup code here:

.with_local_cache(cache_dir, WAPM_SOURCE_CACHE_TIMEOUT);