{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/5762","labels_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5762/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5762/comments","events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5762/events","html_url":"https://github.com/DoSomething/phoenix/issues/5762","id":116364789,"number":5762,"title":"Fastly caching on GET endpoints","user":{"login":"jonuy","id":696595,"avatar_url":"https://avatars.githubusercontent.com/u/696595?v=3","gravatar_id":"","url":"https://api.github.com/users/jonuy","html_url":"https://github.com/jonuy","followers_url":"https://api.github.com/users/jonuy/followers","following_url":"https://api.github.com/users/jonuy/following{/other_user}","gists_url":"https://api.github.com/users/jonuy/gists{/gist_id}","starred_url":"https://api.github.com/users/jonuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonuy/subscriptions","organizations_url":"https://api.github.com/users/jonuy/orgs","repos_url":"https://api.github.com/users/jonuy/repos","events_url":"https://api.github.com/users/jonuy/events{/privacy}","received_events_url":"https://api.github.com/users/jonuy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/%23mobile-app","name":"#mobile-app","color":"bfdadc"},{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/@devops","name":"@devops","color":"5319e7"},{"url":"https://api.github.com/repos/DoSomething/phoenix/labels/priority-high","name":"priority-high","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"blisteringherb","id":28132,"avatar_url":"https://avatars.githubusercontent.com/u/28132?v=3","gravatar_id":"","url":"https://api.github.com/users/blisteringherb","html_url":"https://github.com/blisteringherb","followers_url":"https://api.github.com/users/blisteringherb/followers","following_url":"https://api.github.com/users/blisteringherb/following{/other_user}","gists_url":"https://api.github.com/users/blisteringherb/gists{/gist_id}","starred_url":"https://api.github.com/users/blisteringherb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blisteringherb/subscriptions","organizations_url":"https://api.github.com/users/blisteringherb/orgs","repos_url":"https://api.github.com/users/blisteringherb/repos","events_url":"https://api.github.com/users/blisteringherb/events{/privacy}","received_events_url":"https://api.github.com/users/blisteringherb/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-11T16:03:06Z","updated_at":"2015-11-19T19:32:23Z","closed_at":null,"body":"I'm pretty sure @blisteringherb already started on this work. Just creating an issue now so others can chime in and follow along on progress if need be.\r\n\r\n---\r\n\r\nWe're occasionally seeing slow response times (anywhere from > 5000ms to 40000ms) from the Phoenix API when hitting it from the mobile app and from Runscope tests. Improving the response times here will greatly improve the UX of the app and, particularly when the calls either throw a 503 or have response times > 30000ms, avoid timeout errors on the app.\r\n\r\nThere could be more, but these were the ones we thought could be most helpful to cache:\r\n- GET www.dosomething.org/api/v1/campaigns.json?term_ids=1300,1301,1302,1303&mobile_app=true&mobile_app_date={yyyy-mm-dd}\r\n- GET www.dosomething.org/api/v1/campaigns.json?term_ids=1300&mobile_app=true&mobile_app_date={yyyy-mm-dd}\r\n- GET www.dosomething.org/api/v1/campaigns.json?term_ids=1301&mobile_app=true&mobile_app_date={yyyy-mm-dd}\r\n- GET www.dosomething.org/api/v1/campaigns.json?term_ids=1302&mobile_app=true&mobile_app_date={yyyy-mm-dd}\r\n- GET www.dosomething.org/api/v1/campaigns.json?term_ids=1303&mobile_app=true&mobile_app_date={yyyy-mm-dd}\r\n- GET www.dosomething.org/api/v1/taxonomy_term/1300.json\r\n- GET www.dosomething.org/api/v1/taxonomy_term/1301.json\r\n- GET www.dosomething.org/api/v1/taxonomy_term/1302.json\r\n- GET www.dosomething.org/api/v1/taxonomy_term/1303.json\r\n\r\n**Up for discussion?**\r\n- GET /reportback-items - There was some Drupal caching work done here with #5726. Could it also make sense to put this behind Fastly?\r\n\r\ncc: @marahml @sheyd "},"comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments/158169436","html_url":"https://github.com/DoSomething/phoenix/issues/5762#issuecomment-158169436","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5762","id":158169436,"user":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T19:32:23Z","updated_at":"2015-11-19T19:32:23Z","body":"@blisteringherb @jonuy are we :ok: to close this issue out?"}}