How to change the size of web cache (HTTP 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.

How to change the size of web cache (HTTP cache)?

Postby ViswanathCt » Tue Sep 09, 2014 10:35 pm

The size of the web cache seems to be hard coded to 5MB. Is there a way to increase it?
Last edited by ViswanathCt on Wed Sep 10, 2014 12:36 pm, edited 1 time in total.
ViswanathCt
Newbie
 
Posts: 7
Joined: Tue Sep 09, 2014 10:28 pm

Re: How to change the size of web cache?

Postby magreenblatt » Wed Sep 10, 2014 10:39 am

What feature specifically are you trying to increase the cache size for?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: How to change the size of web cache?

Postby ViswanathCt » Wed Sep 10, 2014 11:01 am

I'm trying to increase the cache for the files from the server (is it HTTP cache?), so that the traffic could be reduced.
ViswanathCt
Newbie
 
Posts: 7
Joined: Tue Sep 09, 2014 10:28 pm

Re: How to change the size of web cache?

Postby magreenblatt » Wed Sep 10, 2014 11:33 am

The http cache size is computed in BackendImpl::AdjustMaxCacheSize based on available disk space. CEF does not currently support specification of a custom cache size, but it could be done using the 4th argument to the HttpCache::DefaultBackend constructor.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: How to change the size of web cache?

Postby magreenblatt » Wed Sep 10, 2014 11:47 am

magreenblatt wrote:The http cache size is computed in BackendImpl::AdjustMaxCacheSize based on available disk space. CEF does not currently support specification of a custom cache size, but it could be done using the 4th argument to the HttpCache::DefaultBackend constructor.

Filed as https://code.google.com/p/chromiumembed ... il?id=1373.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: How to change the size of web cache (HTTP cache)?

Postby ViswanathCt » Wed Sep 10, 2014 12:41 pm

Thanks for clarifying it :)
ViswanathCt
Newbie
 
Posts: 7
Joined: Tue Sep 09, 2014 10:28 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], kimcey, Majestic-12 [Bot] and 43 guests