Read the statement by Michael Teeuw here.
How to clear cache?
-
I’m making a module which operates several images. After finishing development on my Mac then testing on RPi, I found something.
I’ve found cached images are consuming too much RAM of RPI.
Just showing dozens of x00kb images takes memory consumption around 20%. I always remove HTML node for images after showing that. but memory is not returned. I guess it might be caused by cached data. Because, when I reload images previously already loaded and removed once, the memory doesn’t go down. Loading new images makes RAM goes down even after removed. So I doubt the cache issue.So I want to clear cache of Electron after my process is processed. How can I do that?
I think there might be something like
session.clearCache()
… -
Nevermind.
Electron
seems to be able to control its cache automatically.