Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Clearing cache from WebControl - CachePath is null Options
Albert
Posted: Monday, January 9, 2017 10:08:34 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2017
Posts: 9
In my program I am instantiating a WebControl and adding it directly to the form as such:

public EO.WebBrowser.WinForm.WebControl webControl = new EO.WebBrowser.WinForm.WebControl();
this.Controls.Add(webControl);

I wonder is the cache cleared once I exit from the program or do I have to clear the cache manually?
I tried calling the method EO.WebBrowser.Runtime.CachePath but it is returning null. I believe that might be because I am not instantiating a WebBrowser object and using WebControl directly instead?

Cheers.
eo_support
Posted: Monday, January 9, 2017 10:30:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 18,886
Hi,

No. The cache will not be cleared until you call this method:

https://www.essentialobjects.com/doc/eo.webengine.engine.cleanupcachefolders_overloads.aspx

Thanks!
Albert
Posted: Monday, January 9, 2017 10:38:48 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2017
Posts: 9
I am only importing EO.WebBrowser at the moment. Should I then import EO.Engine and call the clean cache method?
Also can I run this method while the form is open and the WebViews are running or are the WebViews locking the cache?

Thanks
eo_support
Posted: Monday, January 9, 2017 10:40:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 18,886
Hi,

Yes. You need to reference EO.WebEngine.dll in order to use this method. The recommended location to call this method is when your application start before you create the WebView since the caches will be locked as soon as you have WebView alive.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.