{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/7055","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/7055/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/7055/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/7055/events","html_url":"https://github.com/edx/edx-platform/pull/7055","id":58397687,"number":7055,"title":"Stop hitting the database when no courses are blocked.","user":{"login":"wedaly","id":2948394,"avatar_url":"https://avatars.githubusercontent.com/u/2948394?v=3","gravatar_id":"","url":"https://api.github.com/users/wedaly","html_url":"https://github.com/wedaly","followers_url":"https://api.github.com/users/wedaly/followers","following_url":"https://api.github.com/users/wedaly/following{/other_user}","gists_url":"https://api.github.com/users/wedaly/gists{/gist_id}","starred_url":"https://api.github.com/users/wedaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wedaly/subscriptions","organizations_url":"https://api.github.com/users/wedaly/orgs","repos_url":"https://api.github.com/users/wedaly/repos","events_url":"https://api.github.com/users/wedaly/events{/privacy}","received_events_url":"https://api.github.com/users/wedaly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T19:18:16Z","updated_at":"2015-02-20T19:19:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/7055","html_url":"https://github.com/edx/edx-platform/pull/7055","diff_url":"https://github.com/edx/edx-platform/pull/7055.diff","patch_url":"https://github.com/edx/edx-platform/pull/7055.patch"},"body":"Noticed this issue while running the performance tests on the embargo feature.  When the cached lists are empty, we were hitting the database.  This change ensures that we hit the database only when there is a cache miss.\r\n\r\n@stephensanchez please review."},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/75301780","html_url":"https://github.com/edx/edx-platform/pull/7055#issuecomment-75301780","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/7055","id":75301780,"user":{"login":"stephensanchez","id":235752,"avatar_url":"https://avatars.githubusercontent.com/u/235752?v=3","gravatar_id":"","url":"https://api.github.com/users/stephensanchez","html_url":"https://github.com/stephensanchez","followers_url":"https://api.github.com/users/stephensanchez/followers","following_url":"https://api.github.com/users/stephensanchez/following{/other_user}","gists_url":"https://api.github.com/users/stephensanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/stephensanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephensanchez/subscriptions","organizations_url":"https://api.github.com/users/stephensanchez/orgs","repos_url":"https://api.github.com/users/stephensanchez/repos","events_url":"https://api.github.com/users/stephensanchez/events{/privacy}","received_events_url":"https://api.github.com/users/stephensanchez/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T19:19:51Z","updated_at":"2015-02-20T19:19:51Z","body":":+1: "}}