{"action":"created","issue":{"url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles/issues/43","repository_url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles","labels_url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles/issues/43/comments","events_url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles/issues/43/events","html_url":"https://github.com/luehrsenheinrich/afb_instant_articles/issues/43","id":161672971,"number":43,"title":"Content Caching?","user":{"login":"fabianpimminger","id":45733,"avatar_url":"https://avatars.githubusercontent.com/u/45733?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianpimminger","html_url":"https://github.com/fabianpimminger","followers_url":"https://api.github.com/users/fabianpimminger/followers","following_url":"https://api.github.com/users/fabianpimminger/following{/other_user}","gists_url":"https://api.github.com/users/fabianpimminger/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianpimminger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianpimminger/subscriptions","organizations_url":"https://api.github.com/users/fabianpimminger/orgs","repos_url":"https://api.github.com/users/fabianpimminger/repos","events_url":"https://api.github.com/users/fabianpimminger/events{/privacy}","received_events_url":"https://api.github.com/users/fabianpimminger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-22T12:49:11Z","updated_at":"2016-06-22T12:56:31Z","closed_at":null,"body":"I'm having an issue with posts where the author embedded many (> 20) social media oembeds. Then feed generation is taking over one minute (even with a very performant server). I guess wordpress is requesting the embeds from the 3rd party service every time the feed is generated?\r\n\r\nThe problem is: Facebook has a timeout in place after 60 seconds and the ingestion of the feed stops. (see: [Bug](https://developers.facebook.com/bugs/1012953652156681/))\r\n\r\nWhat do you think about caching the article content via wordpress transients ([as done in the \"official\" Automattic plugin](https://github.com/Automattic/facebook-instant-articles-wp/blob/18f46a767645bb0921f0aaf5f45058edb5712fb4/class-instant-articles-post.php) )?"},"comment":{"url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles/issues/comments/227734349","html_url":"https://github.com/luehrsenheinrich/afb_instant_articles/issues/43#issuecomment-227734349","issue_url":"https://api.github.com/repos/luehrsenheinrich/afb_instant_articles/issues/43","id":227734349,"user":{"login":"Luehrsen","id":1105871,"avatar_url":"https://avatars.githubusercontent.com/u/1105871?v=3","gravatar_id":"","url":"https://api.github.com/users/Luehrsen","html_url":"https://github.com/Luehrsen","followers_url":"https://api.github.com/users/Luehrsen/followers","following_url":"https://api.github.com/users/Luehrsen/following{/other_user}","gists_url":"https://api.github.com/users/Luehrsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Luehrsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luehrsen/subscriptions","organizations_url":"https://api.github.com/users/Luehrsen/orgs","repos_url":"https://api.github.com/users/Luehrsen/repos","events_url":"https://api.github.com/users/Luehrsen/events{/privacy}","received_events_url":"https://api.github.com/users/Luehrsen/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T12:56:31Z","updated_at":"2016-06-22T12:56:31Z","body":"Yeah, probably a good idea. \r\n\r\nWe call the oembed stuff directly from the provider to get a \"clean\" version from the provider, as many plugins modify the cached version that is already in the database. \r\n\r\nI belive that [this](https://github.com/luehrsenheinrich/afb_instant_articles/blob/master/build/inc/embeds.php#L21) is the correct point to create the caching, you can simply follow [this](https://codex.wordpress.org/Transients_API#Complete_Example) example. \r\n\r\nCan you quickly make a pull request for these 4 lines of code? \r\n\r\nThen I can push a hotfix. :) \r\n\r\n"}}
{"actor":{"display_login":"Luehrsen"}}