Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cache Img objects? #868

Closed
rambo-panda opened this issue Aug 9, 2024 · 0 comments
Closed

Cannot cache Img objects? #868

rambo-panda opened this issue Aug 9, 2024 · 0 comments

Comments

@rambo-panda
Copy link
Contributor

rambo-panda commented Aug 9, 2024

I accidentally executed an operation to cache the Img object, as shown in the code below. However, I found that even after I deleted the cache and executed clearAllCache, the RSS it occupies remains high.

const cache = new Map();
cache.add(url, await loadImage(url));

// do something
....
...

setInterval(() => {
cache.clear();
clearAllCache();
}, 10000);

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant