{"action":"opened","number":11042,"pull_request":{"url":"https://api.github.com/repos/npm/npm/pulls/11042","id":55170469,"html_url":"https://github.com/npm/npm/pull/11042","diff_url":"https://github.com/npm/npm/pull/11042.diff","patch_url":"https://github.com/npm/npm/pull/11042.patch","issue_url":"https://api.github.com/repos/npm/npm/issues/11042","number":11042,"state":"open","locked":false,"title":"cache: measure cache age from process start time","user":{"login":"rmg","id":17978,"avatar_url":"https://avatars.githubusercontent.com/u/17978?v=3","gravatar_id":"","url":"https://api.github.com/users/rmg","html_url":"https://github.com/rmg","followers_url":"https://api.github.com/users/rmg/followers","following_url":"https://api.github.com/users/rmg/following{/other_user}","gists_url":"https://api.github.com/users/rmg/gists{/gist_id}","starred_url":"https://api.github.com/users/rmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmg/subscriptions","organizations_url":"https://api.github.com/users/rmg/orgs","repos_url":"https://api.github.com/users/rmg/repos","events_url":"https://api.github.com/users/rmg/events{/privacy}","received_events_url":"https://api.github.com/users/rmg/received_events","type":"User","site_admin":false},"body":"The default cache-min time is 10 seconds, which is shorter than the\r\naverage install time. This means that if a package has multiple\r\ndependencies that depend on the same package there is a good chance that\r\na default install will result in the sub-dependencies being fetched\r\nmultiple times instead of using the copy that was put in to the cache\r\nearlier _in the same install_.\r\n\r\nExtend the cache-min to be at least the current age of the node process\r\nso that objects fetched more than cache-min seconds ago are not\r\nconsidered stale unless they are also older than the process.\r\n\r\nThis should save a few seconds off any moderately complex package\r\ninstallation.","created_at":"2016-01-06T02:32:21Z","updated_at":"2016-01-06T02:32:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npm/npm/pulls/11042/commits","review_comments_url":"https://api.github.com/repos/npm/npm/pulls/11042/comments","review_comment_url":"https://api.github.com/repos/npm/npm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npm/npm/issues/11042/comments","statuses_url":"https://api.github.com/repos/npm/npm/statuses/57785e5f2bc96cf949ee40b4d749812db6d3f716","head":{"label":"strongloop-forks:cache-snapshotting","ref":"cache-snapshotting","sha":"57785e5f2bc96cf949ee40b4d749812db6d3f716","user":{"login":"strongloop-forks","id":8050416,"avatar_url":"https://avatars.githubusercontent.com/u/8050416?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop-forks","html_url":"https://github.com/strongloop-forks","followers_url":"https://api.github.com/users/strongloop-forks/followers","following_url":"https://api.github.com/users/strongloop-forks/following{/other_user}","gists_url":"https://api.github.com/users/strongloop-forks/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop-forks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop-forks/subscriptions","organizations_url":"https://api.github.com/users/strongloop-forks/orgs","repos_url":"https://api.github.com/users/strongloop-forks/repos","events_url":"https://api.github.com/users/strongloop-forks/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop-forks/received_events","type":"Organization","site_admin":false},"repo":{"id":29048511,"name":"npm","full_name":"strongloop-forks/npm","owner":{"login":"strongloop-forks","id":8050416,"avatar_url":"https://avatars.githubusercontent.com/u/8050416?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop-forks","html_url":"https://github.com/strongloop-forks","followers_url":"https://api.github.com/users/strongloop-forks/followers","following_url":"https://api.github.com/users/strongloop-forks/following{/other_user}","gists_url":"https://api.github.com/users/strongloop-forks/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop-forks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop-forks/subscriptions","organizations_url":"https://api.github.com/users/strongloop-forks/orgs","repos_url":"https://api.github.com/users/strongloop-forks/repos","events_url":"https://api.github.com/users/strongloop-forks/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop-forks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop-forks/npm","description":"a package manager for node","fork":true,"url":"https://api.github.com/repos/strongloop-forks/npm","forks_url":"https://api.github.com/repos/strongloop-forks/npm/forks","keys_url":"https://api.github.com/repos/strongloop-forks/npm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop-forks/npm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop-forks/npm/teams","hooks_url":"https://api.github.com/repos/strongloop-forks/npm/hooks","issue_events_url":"https://api.github.com/repos/strongloop-forks/npm/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop-forks/npm/events","assignees_url":"https://api.github.com/repos/strongloop-forks/npm/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop-forks/npm/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop-forks/npm/tags","blobs_url":"https://api.github.com/repos/strongloop-forks/npm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop-forks/npm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop-forks/npm/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop-forks/npm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop-forks/npm/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop-forks/npm/languages","stargazers_url":"https://api.github.com/repos/strongloop-forks/npm/stargazers","contributors_url":"https://api.github.com/repos/strongloop-forks/npm/contributors","subscribers_url":"https://api.github.com/repos/strongloop-forks/npm/subscribers","subscription_url":"https://api.github.com/repos/strongloop-forks/npm/subscription","commits_url":"https://api.github.com/repos/strongloop-forks/npm/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop-forks/npm/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop-forks/npm/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop-forks/npm/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop-forks/npm/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop-forks/npm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop-forks/npm/merges","archive_url":"https://api.github.com/repos/strongloop-forks/npm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop-forks/npm/downloads","issues_url":"https://api.github.com/repos/strongloop-forks/npm/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop-forks/npm/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop-forks/npm/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop-forks/npm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop-forks/npm/labels{/name}","releases_url":"https://api.github.com/repos/strongloop-forks/npm/releases{/id}","created_at":"2015-01-10T05:39:57Z","updated_at":"2015-04-22T22:39:36Z","pushed_at":"2016-01-06T02:31:28Z","git_url":"git://github.com/strongloop-forks/npm.git","ssh_url":"git@github.com:strongloop-forks/npm.git","clone_url":"https://github.com/strongloop-forks/npm.git","svn_url":"https://github.com/strongloop-forks/npm","homepage":"http://npmjs.org/","size":25282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"npm:master","ref":"master","sha":"e73b56407d95a723d0ebf5434a67d9bc6bce70e9","user":{"login":"npm","id":6078720,"avatar_url":"https://avatars.githubusercontent.com/u/6078720?v=3","gravatar_id":"","url":"https://api.github.com/users/npm","html_url":"https://github.com/npm","followers_url":"https://api.github.com/users/npm/followers","following_url":"https://api.github.com/users/npm/following{/other_user}","gists_url":"https://api.github.com/users/npm/gists{/gist_id}","starred_url":"https://api.github.com/users/npm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npm/subscriptions","organizations_url":"https://api.github.com/users/npm/orgs","repos_url":"https://api.github.com/users/npm/repos","events_url":"https://api.github.com/users/npm/events{/privacy}","received_events_url":"https://api.github.com/users/npm/received_events","type":"Organization","site_admin":false},"repo":{"id":321278,"name":"npm","full_name":"npm/npm","owner":{"login":"npm","id":6078720,"avatar_url":"https://avatars.githubusercontent.com/u/6078720?v=3","gravatar_id":"","url":"https://api.github.com/users/npm","html_url":"https://github.com/npm","followers_url":"https://api.github.com/users/npm/followers","following_url":"https://api.github.com/users/npm/following{/other_user}","gists_url":"https://api.github.com/users/npm/gists{/gist_id}","starred_url":"https://api.github.com/users/npm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npm/subscriptions","organizations_url":"https://api.github.com/users/npm/orgs","repos_url":"https://api.github.com/users/npm/repos","events_url":"https://api.github.com/users/npm/events{/privacy}","received_events_url":"https://api.github.com/users/npm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npm/npm","description":"a package manager for javascript","fork":false,"url":"https://api.github.com/repos/npm/npm","forks_url":"https://api.github.com/repos/npm/npm/forks","keys_url":"https://api.github.com/repos/npm/npm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npm/npm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npm/npm/teams","hooks_url":"https://api.github.com/repos/npm/npm/hooks","issue_events_url":"https://api.github.com/repos/npm/npm/issues/events{/number}","events_url":"https://api.github.com/repos/npm/npm/events","assignees_url":"https://api.github.com/repos/npm/npm/assignees{/user}","branches_url":"https://api.github.com/repos/npm/npm/branches{/branch}","tags_url":"https://api.github.com/repos/npm/npm/tags","blobs_url":"https://api.github.com/repos/npm/npm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npm/npm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npm/npm/git/refs{/sha}","trees_url":"https://api.github.com/repos/npm/npm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npm/npm/statuses/{sha}","languages_url":"https://api.github.com/repos/npm/npm/languages","stargazers_url":"https://api.github.com/repos/npm/npm/stargazers","contributors_url":"https://api.github.com/repos/npm/npm/contributors","subscribers_url":"https://api.github.com/repos/npm/npm/subscribers","subscription_url":"https://api.github.com/repos/npm/npm/subscription","commits_url":"https://api.github.com/repos/npm/npm/commits{/sha}","git_commits_url":"https://api.github.com/repos/npm/npm/git/commits{/sha}","comments_url":"https://api.github.com/repos/npm/npm/comments{/number}","issue_comment_url":"https://api.github.com/repos/npm/npm/issues/comments{/number}","contents_url":"https://api.github.com/repos/npm/npm/contents/{+path}","compare_url":"https://api.github.com/repos/npm/npm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npm/npm/merges","archive_url":"https://api.github.com/repos/npm/npm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npm/npm/downloads","issues_url":"https://api.github.com/repos/npm/npm/issues{/number}","pulls_url":"https://api.github.com/repos/npm/npm/pulls{/number}","milestones_url":"https://api.github.com/repos/npm/npm/milestones{/number}","notifications_url":"https://api.github.com/repos/npm/npm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npm/npm/labels{/name}","releases_url":"https://api.github.com/repos/npm/npm/releases{/id}","created_at":"2009-09-29T17:21:24Z","updated_at":"2016-01-05T22:22:05Z","pushed_at":"2016-01-06T02:32:21Z","git_url":"git://github.com/npm/npm.git","ssh_url":"git@github.com:npm/npm.git","clone_url":"https://github.com/npm/npm.git","svn_url":"https://github.com/npm/npm","homepage":"http://www.npmjs.com/","size":30099,"stargazers_count":8150,"watchers_count":8150,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1665,"mirror_url":null,"open_issues_count":1826,"forks":1665,"open_issues":1826,"watchers":8150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npm/npm/pulls/11042"},"html":{"href":"https://github.com/npm/npm/pull/11042"},"issue":{"href":"https://api.github.com/repos/npm/npm/issues/11042"},"comments":{"href":"https://api.github.com/repos/npm/npm/issues/11042/comments"},"review_comments":{"href":"https://api.github.com/repos/npm/npm/pulls/11042/comments"},"review_comment":{"href":"https://api.github.com/repos/npm/npm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npm/npm/pulls/11042/commits"},"statuses":{"href":"https://api.github.com/repos/npm/npm/statuses/57785e5f2bc96cf949ee40b4d749812db6d3f716"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}