From ec26083e815a82654de9deed65927c25a0cbf5ba Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Tue, 22 Oct 2013 12:34:07 +0400 Subject: [PATCH] added a maxage option for uplinks --- ChangeLog.md | 1 + lib/config_def.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 021cf89b2..f516f2554 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,6 +1,7 @@ ?? ??? ????, version 0.5.2 +- added a "maxage" option for uplinks - added fs-ext dependency (flock) - fixed a few face conditions diff --git a/lib/config_def.yaml b/lib/config_def.yaml index 4ed594a5c..e1cade1be 100644 --- a/lib/config_def.yaml +++ b/lib/config_def.yaml @@ -12,6 +12,12 @@ uplinks: npmjs: url: https://registry.npmjs.org/ + # maximum time (in seconds) in which data is considered up to date + # + # default is 2 minutes, so server won't request the same data from + # uplink if a similar request was made less than 2 minutes ago + #maxage: 120 + packages: # uncomment this for packages with "local-" prefix to be available # for admin only, it's a recommended way of handling private packages