Sharinglabs / cordova-plugin-cache

This is a phonegap / cordova 3.3.0 plugin (iOS / Android) which allows to clear the cordova webview cache.
MIT License
12 stars 5 forks source link

plugins.cordova.io will be deprecated in the near future #1

Closed bau720123 closed 9 years ago

bau720123 commented 9 years ago

according to this http://phonegap.com/blog/2015/05/26/npm-plugins-available/ http://cordova.apache.org/announcements/2015/04/21/plugins-release-and-move-to-npm.html

so...just want to inform you that your plugin should be move to npm in the future...

devteamshippeo commented 9 years ago

possible to migrate on npmjs.org repository ?

bau720123 commented 9 years ago

just like @devteamshippeo said

devteamshippeo commented 9 years ago

This plugin https://github.com/tiltshiftfocus/cordova-plugin-cache is exposed on NPM via https://www.npmjs.com/package/cordova-plugin-cache

It seems to be the same plugin as Sharinglabs'one (see historic for details)

Heshyo commented 9 years ago

This repo was based on https://github.com/moderna/cordova-plugin-cache . The owner never published it on Phonegap Build even after we asked, so we decided to fork it and modify what's necessary to be able to publish it on PGB.

If https://github.com/tiltshiftfocus/cordova-plugin-cache is on NPM, then sure you can use it instead.It'd be best to avoid having duplicated plugins.

bau720123 commented 9 years ago

thanks @devteamshippeo and @Heshyo I will use https://www.npmjs.com/package/cordova-plugin-cache to instead the original one

bau720123 commented 9 years ago

hi @Heshyo just want to ask you a simple question according to this https://www.npmjs.com/package/cordova-plugin-cache did you know... what the detail difference between the "window.cache.clear" and "window.cache.cleartemp" it look like all doing the "Clear Cache or Temp" thing

if I misunderstood please correct me thanks

Heshyo commented 9 years ago

@bau720123 https://github.com/tiltshiftfocus/cordova-plugin-cache/blob/master/src/ios/Cache.m Looks like for iOS clear clears the cache, while cleartemp clears the temp folders. The cleartemp was added by tiltshiftfocus on his repository and isn't in the original repo.

bau720123 commented 9 years ago

got it thanks @Heshyo