1.0.0 • Published 9 years ago

cordova-plugin-cacheinfo v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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.