|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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!
|
|