{"action":"created","issue":{"url":"https://api.github.com/repos/documentcloud/documentcloud/issues/164","labels_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/164/comments","events_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/164/events","html_url":"https://github.com/documentcloud/documentcloud/pull/164","id":63284544,"number":164,"title":"Automate WordPress blog feed in site sidebar","user":{"login":"anthonydb","id":273891,"avatar_url":"https://avatars.githubusercontent.com/u/273891?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonydb","html_url":"https://github.com/anthonydb","followers_url":"https://api.github.com/users/anthonydb/followers","following_url":"https://api.github.com/users/anthonydb/following{/other_user}","gists_url":"https://api.github.com/users/anthonydb/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonydb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonydb/subscriptions","organizations_url":"https://api.github.com/users/anthonydb/orgs","repos_url":"https://api.github.com/users/anthonydb/repos","events_url":"https://api.github.com/users/anthonydb/events{/privacy}","received_events_url":"https://api.github.com/users/anthonydb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-20T19:08:14Z","updated_at":"2015-03-25T12:10:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/documentcloud/documentcloud/pulls/164","html_url":"https://github.com/documentcloud/documentcloud/pull/164","diff_url":"https://github.com/documentcloud/documentcloud/pull/164.diff","patch_url":"https://github.com/documentcloud/documentcloud/pull/164.patch"},"body":"This pulls the most recent seven posts from our blog's API."},"comment":{"url":"https://api.github.com/repos/documentcloud/documentcloud/issues/comments/86000724","html_url":"https://github.com/documentcloud/documentcloud/pull/164#issuecomment-86000724","issue_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/164","id":86000724,"user":{"login":"knowtheory","id":192,"avatar_url":"https://avatars.githubusercontent.com/u/192?v=3","gravatar_id":"","url":"https://api.github.com/users/knowtheory","html_url":"https://github.com/knowtheory","followers_url":"https://api.github.com/users/knowtheory/followers","following_url":"https://api.github.com/users/knowtheory/following{/other_user}","gists_url":"https://api.github.com/users/knowtheory/gists{/gist_id}","starred_url":"https://api.github.com/users/knowtheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowtheory/subscriptions","organizations_url":"https://api.github.com/users/knowtheory/orgs","repos_url":"https://api.github.com/users/knowtheory/repos","events_url":"https://api.github.com/users/knowtheory/events{/privacy}","received_events_url":"https://api.github.com/users/knowtheory/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T12:10:26Z","updated_at":"2015-03-25T12:10:26Z","body":"We're using rails's [FileStore caching functionality](http://guides.rubyonrails.org/caching_with_rails.html), so if we wanted to stash the assembled HTML, that'd be one way to go.  With rails's caching mechanism, we still have to figure out how to expire based on when a new post is published or some proxy thereof.\r\n\r\nOne ugly hacky way would be to have a cronjob which periodically checks whether new posts have been posted (but even if we were to post every day, having a cronjob that runs at regular intervals seems like a lot of unnecessary work.  Another would be to give our blog posting mechanisms some way to signal the platform to expire the cache (say have a Rails action for a url which the blog could POST to w/ a shared secret when a new post goes live.  Although i have no idea how complicated implementing this is from the WP side).\r\n\r\nThe js thing would be the other alternative (although that'd increase the # of requests to the WP blog too)"}}