如何清除Electron(atom shell)中的缓存数据? [英] How to clear the cache data in Electron(atom shell)?
问题描述
我想清除Electron(atom-shell)中的缓存数据.我不 查找任何gui.App.clearCache()之类的api(node-webkit api来清除缓存 数据).如果您找到任何api或任何其他方式,请让我 知道.评论表示赞赏.
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 .
推荐答案
Electron将其缓存存储在以下文件夹中:
The Electron stores it's cache in these folders:
Windows:
C:\Users\<user>\AppData\Roaming\<yourAppName>\Cache
Windows:
C:\Users\<user>\AppData\Roaming\<yourAppName>\Cache
Linux:
/home/<user>/.config/<yourAppName>/Cache
Linux:
/home/<user>/.config/<yourAppName>/Cache
OS X:
/Users/<user>/Library/Application Support/<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 ;-)
这篇关于如何清除Electron(atom shell)中的缓存数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!