Question regarding chromium cache

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Question regarding chromium cache

Postby charlieq » Thu Apr 26, 2018 8:21 pm

When CEF-based application upgrades CEF from lower version to higher version, is new version chromium compatible with old versions' cache? Otherwise the app has to provide user mechanism to clean cache like Chrome browser does.

Answer will be greatly appreciated.
charlieq
Techie
 
Posts: 40
Joined: Mon Mar 20, 2017 9:50 pm

Re: Question regarding chromium cache

Postby ndesktop » Fri Apr 27, 2018 2:22 am

The question is too broad. For sure from time to time caches become different (either added more fields, props, even changing the database structure and database itself perhaps).
AFAIK, there is no callback à la
virtual void OnCacheCompatibility(long previousVer, long currentVer, ISomeCacheDatabaseInterfaceDelegate* delegate) = 0;
to be invoked on CEF startup.
Also, the cache path contains multiple things (stored files, cookies, user prefs), each one probably with its own compatibility logic.

For sure there is a mechanism that does the upgrade in Chromium, but I don't think is something exposed from content/ or public/.
Most likely you need to do it from the app somehow.

Assuming you want to modify Chromium yourself, I'd start from here.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Question regarding chromium cache

Postby magreenblatt » Fri Apr 27, 2018 2:53 am

Newer versions will upgrade or discard cache data from older versions. You can also delete the cache directory before calling CefInitialize or after calling CefShutdown.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 64 guests

cron