Re: Cahe
Posted: Wed Jan 30, 2019 8:23 am
Hi,
If you have a normal browser created at the same time than the rest of the application components then you can set the cache using the GlobalCEFApp.cache property before the GlobalCEFApp.StartMainProcess call in the DPR file. The following link has the code to set the cache disabled. Enable it in your application :
https://github.com/salvadordf/CEF4Delph ... r2.dpr#L69
If you create the browser at run-time you can also set the cache while creating a new "request context". You would need to set the cache in the first parameter of TCefRequestContextRef.New :
https://github.com/salvadordf/CEF4Delph ... m.pas#L212
In all cases, the cache directory can be a relative or absolute path, and it has to be located in a writable directory.
If you have a normal browser created at the same time than the rest of the application components then you can set the cache using the GlobalCEFApp.cache property before the GlobalCEFApp.StartMainProcess call in the DPR file. The following link has the code to set the cache disabled. Enable it in your application :
https://github.com/salvadordf/CEF4Delph ... r2.dpr#L69
If you create the browser at run-time you can also set the cache while creating a new "request context". You would need to set the cache in the first parameter of TCefRequestContextRef.New :
https://github.com/salvadordf/CEF4Delph ... m.pas#L212
In all cases, the cache directory can be a relative or absolute path, and it has to be located in a writable directory.