cordova-plugin-cacheinfo
Webview cache informations
iOS only at the moment.
Installation
Install the plugin :
cordova plugin add --save cordova-plugin-cacheinfo
Usage
cordova.plugins.CacheInfo.getInfos(function(results) {
console.log(results);
});
returns
{
"MemoryCache": 849913,
"MemoryCapacity": 134217728,
"DiskCache": 312648,
"DiskCapacity": 536870912
}
reset Safari cache : cordova.plugins.CacheInfo.clear()
Licence MIT
Code distributed under MIT licence. Contributions welcome.