Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Create OSR

dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Re: Create OSR

Post by dilfich »

// If you use an empty cache path, CEF will use in-memory cache.

Then the application will take up a lot of memory. :?
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Create OSR

Post by salvadordf »

After searching for a way to limit the cache size I found this old message from the CEF3 project maintainer :
http://magpcss.org/ceforum/viewtopic.ph ... 754#p24755
There is no explicit way to limit the cache size
There are some command line switches like --disk-cache-size but they don't seem to work.
https://peter.sh/experiments/chromium-c ... -switches/

In fact, there is an unresolved CEF3 issue to add support for that command line.
https://bitbucket.org/chromiumembedded/ ... size-limit

However, there may be some possible solutions :
  • If you control the web server you could send the resources with the right HTTP headers to avoid cache.
  • The previous issue states that CEF currently uses the default algorithm from BackendImpl::AdjustMaxCacheSize which computes the http cache size limit based on available disk space. You could try to set GlobalCEFApp.cache to a directory in a small partition or storage device.
Post Reply