cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject cordova-lib git commit: CB-8114 Specify a cache-min-time for plugins (closes #133)
Date Tue, 23 Dec 2014 18:41:20 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 40ee5bc5d -> f0520b979


CB-8114 Specify a cache-min-time for plugins (closes #133)


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/f0520b97
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/f0520b97
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/f0520b97

Branch: refs/heads/master
Commit: f0520b97937a82b5373a766af39c51a821e5c5d0
Parents: 40ee5bc
Author: Murat Sutunc <sutunc@gmail.com>
Authored: Mon Dec 8 15:50:35 2014 -0800
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Dec 23 13:40:59 2014 -0500

----------------------------------------------------------------------
 cordova-lib/src/plugman/registry/registry.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f0520b97/cordova-lib/src/plugman/registry/registry.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/registry/registry.js b/cordova-lib/src/plugman/registry/registry.js
index 5af4890..e3e0532 100644
--- a/cordova-lib/src/plugman/registry/registry.js
+++ b/cordova-lib/src/plugman/registry/registry.js
@@ -35,7 +35,8 @@ var npm = require('npm'),
     unpack = require('../../util/unpack'),
     // if PLUGMAN_HOME env var is specified use it as config directory (see CB-8190)
     plugmanConfigDir = process.env.PLUGMAN_HOME || path.resolve(home, '.plugman'),
-    plugmanCacheDir = path.resolve(plugmanConfigDir, 'cache');
+    plugmanCacheDir = path.resolve(plugmanConfigDir, 'cache'),
+    oneDay = 3600*24;
 
 
 module.exports = {
@@ -223,7 +224,8 @@ function initSettings() {
         cache: plugmanCacheDir,
         registry: 'http://registry.cordova.io',
         logstream: fs.createWriteStream(path.resolve(plugmanConfigDir, 'plugman.log')),
-        userconfig: path.resolve(plugmanConfigDir, 'config')
+        userconfig: path.resolve(plugmanConfigDir, 'config'),
+        'cache-min': oneDay
     });
     return Q(settings);
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message