1.0.1 • Published 4 years ago
cordova-plugin-clearcache v1.0.1
cordova-plugin-clearcache
clear externalCacheDir and cacheDir or webView cache
install
npm install cordova-plugin-clearcache
or
cordova plugin add cordova-plugin-clearcache
or
cordova plugin add https://github.com/jeryM/cordova-plugin-clearcache.git
use
ionic :
declare let CordovaClearCache;
* clear externalCacheDir and cacheDir
CordovaClearCache.clearCacheAndExternalCache();
* Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used
CordovaClearCache.webViewClearCache();
* clear cacheDir from cordova.getActivity().getCacheDir()
CordovaClearCache.clearCacheOnly();