mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Unable to clear cache #77
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yoDon on GitHub (Nov 24, 2017).
Originally assigned to: @GregorBiswanger on GitHub.
I'm unable to find the Electron.NET version of the clearCache method that should be exposed on the session object, in large part because I'm not able to find an Electron.NET implementation of the session object. My guess is this is mostly a "we need more hands manually exposing Electron methods in Electron.NET" sort of issue which I'm happy to help with but I'm not sure what to do about starting to stub in the missing session object.
For context, see
https://stackoverflow.com/questions/31446782/how-to-clear-the-cache-data-in-electronatom-shell
and
70643a865b/docs/api/session.mdIt looks to me like the clearCache method is added to the Javascript by way of the C++ WebFrame::BuildPrototype method in
c18afc924b/atom/renderer/api/atom_api_web_frame.ccFor now, I'm manually clearing the on disk cache, which I found via https://stackoverflow.com/a/44675132/2827071