{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1247","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1247/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1247/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1247/events","html_url":"https://github.com/NuGet/Home/issues/1247","id":102848292,"number":1247,"title":"ResourceProvider.TryCreate() should not blindly cache negative result","user":{"login":"feiling","id":2679220,"avatar_url":"https://avatars.githubusercontent.com/u/2679220?v=3","gravatar_id":"","url":"https://api.github.com/users/feiling","html_url":"https://github.com/feiling","followers_url":"https://api.github.com/users/feiling/followers","following_url":"https://api.github.com/users/feiling/following{/other_user}","gists_url":"https://api.github.com/users/feiling/gists{/gist_id}","starred_url":"https://api.github.com/users/feiling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feiling/subscriptions","organizations_url":"https://api.github.com/users/feiling/orgs","repos_url":"https://api.github.com/users/feiling/repos","events_url":"https://api.github.com/users/feiling/events{/privacy}","received_events_url":"https://api.github.com/users/feiling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T17:26:11Z","updated_at":"2015-08-24T17:26:11Z","closed_at":null,"body":"In the TryCreate() method in several ResourceProviders, when the resource cannot be created, then null value is cached. But whether null should be cached really depends on the underlying error: If it's 404, then probably it's OK to add null to the cache. But if the error is authentication failure, probably we shouldn't cache null in this case."}}