Page 2 of 2
Re: Create OSR
Posted: Sun Feb 18, 2018 7:56 am
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.

Re: Create OSR
Posted: Sun Feb 18, 2018 8:31 am
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.