Welcome Guest Search | Active Topics | Sign In | Register

web browser cache on update Options
JoshD
Posted: Monday, April 22, 2019 2:12:08 PM
Rank: Member
Groups: Member

Joined: 8/11/2015
Posts: 19
Looks like the web browser cache is stored per version. Therefore, when we update to a new version the user loses all of their cache.

C:\Users\UserName\AppData\Local\Temp\eo.webbrowser.cache.xxxxxxxx

Is there a way around this?
Should we specify the cache location to a generic location?

C:\Users\UserName\AppData\Local\Temp\eo.webbrowser.cache
eo_support
Posted: Monday, April 22, 2019 3:17:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

You can do that by specifically setting EO.WebBrowser.Runtime.CachePath to a fixed value. However the reason that we use version specific cache path by default is that the Chromium browser engine MAY change cache file format between versions so in those cases, you may still lose the cache.

Thanks!
JoshD
Posted: Monday, April 22, 2019 5:38:28 PM
Rank: Member
Groups: Member

Joined: 8/11/2015
Posts: 19
Thanks.
Once a new version is installed how do we move cache from the old location to the new location?
We have settings stored in local storage that we do not want to lose when we deploy an update.
eo_support
Posted: Tuesday, April 23, 2019 8:17:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
You would just keep using the same folder in that case --- and in case the format changes, you MAY lose them. The Chromium browser engine MAY decide to still be able to read old format when the format changes, but there is no guarantee for the future.
JoshD
Posted: Tuesday, April 23, 2019 10:51:58 AM
Rank: Member
Groups: Member

Joined: 8/11/2015
Posts: 19
Understood that we could use the existing path. We wanted to move to a path that was generic of a version number and it wasn't clear how to use a new path, yet read the old path to get the data from the previous version and copy it to the new path.
eo_support
Posted: Tuesday, April 23, 2019 10:55:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
I am not sure if I understood you correctly. There is no such thing as "old path" or "new path". If you set EO.WebBrowser.Runtime.CachePath to a fixed value, then whatever value you set is the path. That's the only thing that's available to you. There is nothing that would allow you to read the cache, move or copy it. There is one folder that contains everything and that's it.


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.