I want to clear cache data in Electron(atom-shell). I don't find any api like gui.App.clearCache()(node-webkit api to clear cache data) in Electron. If you find any api or any other way please let me know. comments are appreciated .
CTRL+SHIFT+I opens up the dev tools in Electron apps. This answer is one of possible solutions. Thank you, this is helpful if you just need to quickly clear the cache without writing code for it for a one time thing.
On environments that have been using older versions of Electron, you might find the cache also in ~/. electron . You can also override the local cache location by providing a electron_config_cache environment variable.
The Electron stores it's cache in these folders:
Windows:C:\Users\<user>\AppData\Roaming\<yourAppName>\Cache
Linux:/home/<user>/.config/<yourAppName>/Cache
OS X:/Users/<user>/Library/Application Support/<yourAppName>/Cache
So deleting these folders can also help you. Of course this is one time solution ;-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With