Created
September 6, 2017 22:52
-
-
Save akashnimare/99695e876ef95210fa506ba716cc1ab3 to your computer and use it in GitHub Desktop.
Clear cach in electron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {BrowserWindow} = require('electron'); | |
const win = BrowserWindow.getAllWindows()[0]; | |
const ses = win.webContents.session; | |
ses.clearCache(() => { | |
alert("Cache cleared!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment