[Interest] How to overcome QNetworkDiskCache limitation

Thiago Macieira thiago.macieira at intel.com
Sat Oct 24 19:25:05 CEST 2015


On Monday 19 October 2015 16:37:03 Gian Maxera wrote:
> Hello,
> the documentation says:
> 
> "Currently you cannot share the same cache files with more than one disk
> cache."
> 
> What is the issue on sharing the same cache files ?

The saving of cache files is not atomic and some information is kept in 
memory. So two disk caches would keep different states and possibly cause data 
corruption.

> How can I overcome this limitation without rewriting from scratch a disk
> cache ?

Edit the Qt source code and modify QNetworkDiskCache.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list