{"action":"created","issue":{"url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/issues/137","repository_url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper","labels_url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/issues/137/comments","events_url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/issues/137/events","html_url":"https://github.com/Islandora/islandora_solution_pack_newspaper/pull/137","id":142188491,"number":137,"title":"Address ISLANDORA 1640.","user":{"login":"mjordan","id":403918,"avatar_url":"https://avatars.githubusercontent.com/u/403918?v=3","gravatar_id":"","url":"https://api.github.com/users/mjordan","html_url":"https://github.com/mjordan","followers_url":"https://api.github.com/users/mjordan/followers","following_url":"https://api.github.com/users/mjordan/following{/other_user}","gists_url":"https://api.github.com/users/mjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/mjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjordan/subscriptions","organizations_url":"https://api.github.com/users/mjordan/orgs","repos_url":"https://api.github.com/users/mjordan/repos","events_url":"https://api.github.com/users/mjordan/events{/privacy}","received_events_url":"https://api.github.com/users/mjordan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-03-20T18:19:53Z","updated_at":"2016-03-29T13:31:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/pulls/137","html_url":"https://github.com/Islandora/islandora_solution_pack_newspaper/pull/137","diff_url":"https://github.com/Islandora/islandora_solution_pack_newspaper/pull/137.diff","patch_url":"https://github.com/Islandora/islandora_solution_pack_newspaper/pull/137.patch"},"body":"**JIRA Ticket**: https://jira.duraspace.org/browse/ISLANDORA-1640\r\n\r\n# What does this Pull Request do?\r\n\r\nUses Drupal's Cache API to cache the list of newspaper issues.\r\n\r\n# What's new?\r\nislandora_newspaper_get_issues() now checks to see if a cached version of the issue list data exists; if it doesn't, generates the data as previously and also caches it; if cached version does exist, returns it and skips regenerating it.\r\n\r\nCache lifetime is [CACHE_PERMANENT](https://api.drupal.org/api/drupal/includes!cache.inc/function/cache_set/7).\r\n\r\n# How should this be tested?\r\n\r\n* Check out this branch.\r\n* Visit the issue navigator for a large newspaper. This will populate the cache.\r\n* In a private tab (e.g., as anonymous), visit the same issue navigator. It should render much faster than before.\r\n\r\n# Additional Notes:\r\nChanges in this PR will not need updates to documentation or any admin settings.\r\n\r\n# Interested parties\r\n@whikloj @ppound and other users who have large newspapers in Islandora.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/issues/comments/202894826","html_url":"https://github.com/Islandora/islandora_solution_pack_newspaper/pull/137#issuecomment-202894826","issue_url":"https://api.github.com/repos/Islandora/islandora_solution_pack_newspaper/issues/137","id":202894826,"user":{"login":"mjordan","id":403918,"avatar_url":"https://avatars.githubusercontent.com/u/403918?v=3","gravatar_id":"","url":"https://api.github.com/users/mjordan","html_url":"https://github.com/mjordan","followers_url":"https://api.github.com/users/mjordan/followers","following_url":"https://api.github.com/users/mjordan/following{/other_user}","gists_url":"https://api.github.com/users/mjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/mjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjordan/subscriptions","organizations_url":"https://api.github.com/users/mjordan/orgs","repos_url":"https://api.github.com/users/mjordan/repos","events_url":"https://api.github.com/users/mjordan/events{/privacy}","received_events_url":"https://api.github.com/users/mjordan/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T13:31:52Z","updated_at":"2016-03-29T13:31:52Z","body":"OK, great, I will continue to work on this PR."}}