How do i completely disable cache in CEF3?

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 do i completely disable cache in CEF3?

Postby eren » Mon Apr 14, 2014 8:38 am

I'm using CEF v.3.1650.1567 and i need to disable cache completely. I tried to start CEF with these command line switches:
--disable-application-cache
--disable-cache
--disable-gpu-program-cache
--disable-gpu-shader-disk-cache

But it still creates cookie files in cache folder. How do i disable it?
CEF v3.1650.1567_windows32
eren
Techie
 
Posts: 25
Joined: Mon Feb 03, 2014 8:11 am

Re: How do i completely disable cache in CEF3?

Postby magreenblatt » Mon Apr 14, 2014 8:50 am

Why do you want to disable the cache?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How do i completely disable cache in CEF3?

Postby Czarek » Mon Apr 14, 2014 10:09 am

Do you want to disable hard drive cache? Then do not set the CefSettings.cache_path option.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: How do i completely disable cache in CEF3?

Postby magreenblatt » Mon Apr 14, 2014 10:19 am

Czarek wrote:Do you want to disable hard drive cache? Then do not set the CefSettings.cache_path option.

This will cause a unique cache directory to be created in the user's temp directory for each run of the application.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How do i completely disable cache in CEF3?

Postby eren » Tue Apr 15, 2014 1:00 am

magreenblatt wrote:Why do you want to disable the cache?

Some testing purposes application. I need to start many instances of CEF at the time. And these instances should not have common cache.
For now every instance of CEF stores its cache at its own unique directory. It takes alot of disk space and i don't want to clean this cache every time.
So it would be great if i could disable it completely.
CEF v3.1650.1567_windows32
eren
Techie
 
Posts: 25
Joined: Mon Feb 03, 2014 8:11 am

Re: How do i completely disable cache in CEF3?

Postby angshuman » Fri May 03, 2019 6:30 am

magreenblatt wrote:
Czarek wrote:Do you want to disable hard drive cache? Then do not set the CefSettings.cache_path option.

This will cause a unique cache directory to be created in the user's temp directory for each run of the application.


Could you please tell what is the cache directory called in %TEMP% path ?
angshuman
Techie
 
Posts: 10
Joined: Thu Jan 17, 2019 6:12 am

Re: How do i completely disable cache in CEF3?

Postby magreenblatt » Fri May 03, 2019 10:35 am

angshuman wrote:
magreenblatt wrote:
Czarek wrote:Do you want to disable hard drive cache? Then do not set the CefSettings.cache_path option.

This will cause a unique cache directory to be created in the user's temp directory for each run of the application.


Could you please tell what is the cache directory called in %TEMP% path ?

Please don’t post on old threads. A cache directory is no longer created in %TEMP%.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], ndesktop and 44 guests