Skip to content

Unable to clear cache #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yoDon opened this issue Nov 24, 2017 · 2 comments
Closed

Unable to clear cache #66

yoDon opened this issue Nov 24, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@yoDon
Copy link
Contributor

yoDon commented Nov 24, 2017

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
https://github.com/electron/electron/blob/70643a865be97a76b4604619921f5e4d047e41b5/docs/api/session.md

It looks to me like the clearCache method is added to the Javascript by way of the C++ WebFrame::BuildPrototype method in https://github.com/electron/electron/blob/c18afc924b7218555e529c0583773f58e1015cbe/atom/renderer/api/atom_api_web_frame.cc

For now, I'm manually clearing the on disk cache, which I found via https://stackoverflow.com/a/44675132/2827071

@GregorBiswanger GregorBiswanger self-assigned this Dec 18, 2017
@GregorBiswanger GregorBiswanger added this to the 0.0.10 milestone Apr 16, 2018
@robertmuehsig robertmuehsig modified the milestones: 0.0.10, 0.0.12 Jan 1, 2019
@GregorBiswanger
Copy link
Member

Fixed! Implemented for the next big Electron.NET version:

await browserWindow.WebContents.Session.ClearCacheAsync();

@win32nipuh
Copy link

ok, great, when you are going to release this big version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants