Michal Novotny wrote:
On 02/19/2014 11:50 AM, Dao wrote:
On 19.02.2014 01:56, Neil wrote:
In particular, I understand that there is a preference to toggle the
cache. What does application code have to do in order to work with
whichever cache has been enabled?
Nothing? It's a different backend behind the same API, at least
that's my rough and possibly not quite correct understanding...
We've changed the API some time ago. Honza wrote a wrapper that
implemented the new API but used the old cache backend. The preference
change now just replaces the old backend with the new one.
old API: netwerk/cache/*.idl
new API: netwerk/cache2/*.idl
Is the conversion straightforward? In particular, the API calls I'm
interested in:
1. Given an HTTP or FTP URI, return the size of the cached data
2. Returning the size of the disk cache
3. Clearing the disk and memory cache
4. Clearing the offline app cache
Also, are the prefs used by the cache the same? In particular,
browser.cache.check_doc_frequency, browser.cache.disk.capacity,
browser.cache.disk.parent_directory and
browser.cache.disk.smart_size.enabled come to mind.
--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform