{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/6967","repository_url":"https://api.github.com/repos/Automattic/jetpack","labels_url":"https://api.github.com/repos/Automattic/jetpack/issues/6967/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/6967/comments","events_url":"https://api.github.com/repos/Automattic/jetpack/issues/6967/events","html_url":"https://github.com/Automattic/jetpack/issues/6967","id":221385106,"number":6967,"title":"Feature request: Move blocking external requests on post save to cron","user":{"login":"mboynes","id":465154,"avatar_url":"https://avatars0.githubusercontent.com/u/465154?v=4","gravatar_id":"","url":"https://api.github.com/users/mboynes","html_url":"https://github.com/mboynes","followers_url":"https://api.github.com/users/mboynes/followers","following_url":"https://api.github.com/users/mboynes/following{/other_user}","gists_url":"https://api.github.com/users/mboynes/gists{/gist_id}","starred_url":"https://api.github.com/users/mboynes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboynes/subscriptions","organizations_url":"https://api.github.com/users/mboynes/orgs","repos_url":"https://api.github.com/users/mboynes/repos","events_url":"https://api.github.com/users/mboynes/events{/privacy}","received_events_url":"https://api.github.com/users/mboynes/received_events","type":"User","site_admin":false},"labels":[{"id":82624277,"url":"https://api.github.com/repos/Automattic/jetpack/labels/General","name":"General","color":"006b75","default":false},{"id":120452264,"url":"https://api.github.com/repos/Automattic/jetpack/labels/Performance","name":"Performance","color":"d4c5f9","default":false},{"id":576543034,"url":"https://api.github.com/repos/Automattic/jetpack/labels/Vault","name":"Vault","color":"006b75","default":false},{"id":470168693,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Pri]%20High","name":"[Pri] High","color":"ec9a71","default":false},{"id":70896534,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-12T20:44:39Z","updated_at":"2018-05-04T07:25:39Z","closed_at":"2018-05-04T07:25:39Z","author_association":"NONE","body":"On a news website I maintain, editors reported that post publishing was taking a long time. I looked through New Relic data for this site and found that Jetpack and VaultPress are making blocking requests on post save, and the Jetpack requests are relatively slow. On average, these requests combined add over a second to the save process, and on occasion, the Jetpack request takes upwards of 10 seconds. Here is a New Relic screencap from the last 7 days, ending today:\r\n\r\n![jetpack-last-week](https://cloud.githubusercontent.com/assets/465154/24977716/fafc1f36-1f9b-11e7-8156-6c00681edeb2.png)\r\n\r\nLooking at the four outlier transaction traces at the bottom, the requests to `jetpack.wordpress.com` took 10.0s, 10.3s, 4.7s, and 9.7s, respectively. Worth noting that the VaultPress request, while still blocking, was never more than 0.3s in these four traces (and from what I can tell, it's pretty much always within a 30ms range of the 280ms average).\r\n\r\nI suggest moving these requests to run via wp-cron if possible, so they don't block the page load.\r\n\r\nFor what it's worth, this site is on WordPress.com VIP. Therefore, if any Automatticians look into this and want to dig deeper into the New Relic data, that's available :-)."}}
{"actor":{"display_login":"lezama"}}