isaacs/npm — Issue #2249: minimum cache timeout option
Author: lautgesetz
Created: 2012-03-09 18:07:09+00:00
State: open

It would be nice if npm had an explicit setting for the minimum cache age, so that if a module's already fetched info is less than the minimum, it will be used rather than hitting the registry again. This would significantly reduce the number of registry hits for common dependencies -- if I do npm update -g, for example, I get many hits for things like mkdirp, lru-cache, traverse, abbrev, etc. I should be able to tell npm that it's ok to go with info that is 60 seconds stale, or whatever.