{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wpseo-news/issues/183","repository_url":"https://api.github.com/repos/Yoast/wpseo-news","labels_url":"https://api.github.com/repos/Yoast/wpseo-news/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wpseo-news/issues/183/comments","events_url":"https://api.github.com/repos/Yoast/wpseo-news/issues/183/events","html_url":"https://github.com/Yoast/wpseo-news/pull/183","id":126665760,"number":183,"title":"Stories/cg/remove news sitemap","user":{"login":"CarolineGeven","id":8614579,"avatar_url":"https://avatars.githubusercontent.com/u/8614579?v=3","gravatar_id":"","url":"https://api.github.com/users/CarolineGeven","html_url":"https://github.com/CarolineGeven","followers_url":"https://api.github.com/users/CarolineGeven/followers","following_url":"https://api.github.com/users/CarolineGeven/following{/other_user}","gists_url":"https://api.github.com/users/CarolineGeven/gists{/gist_id}","starred_url":"https://api.github.com/users/CarolineGeven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarolineGeven/subscriptions","organizations_url":"https://api.github.com/users/CarolineGeven/orgs","repos_url":"https://api.github.com/users/CarolineGeven/repos","events_url":"https://api.github.com/users/CarolineGeven/events{/privacy}","received_events_url":"https://api.github.com/users/CarolineGeven/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yoast/wpseo-news/labels/development","name":"development","color":"78BDF2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Yoast/wpseo-news/milestones/8","html_url":"https://github.com/Yoast/wpseo-news/milestones/3.2","labels_url":"https://api.github.com/repos/Yoast/wpseo-news/milestones/8/labels","id":1579509,"number":8,"title":"3.2","description":null,"creator":{"login":"omarreiss","id":1488816,"avatar_url":"https://avatars.githubusercontent.com/u/1488816?v=3","gravatar_id":"","url":"https://api.github.com/users/omarreiss","html_url":"https://github.com/omarreiss","followers_url":"https://api.github.com/users/omarreiss/followers","following_url":"https://api.github.com/users/omarreiss/following{/other_user}","gists_url":"https://api.github.com/users/omarreiss/gists{/gist_id}","starred_url":"https://api.github.com/users/omarreiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarreiss/subscriptions","organizations_url":"https://api.github.com/users/omarreiss/orgs","repos_url":"https://api.github.com/users/omarreiss/repos","events_url":"https://api.github.com/users/omarreiss/events{/privacy}","received_events_url":"https://api.github.com/users/omarreiss/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-02-12T11:21:21Z","updated_at":"2016-02-13T10:12:14Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-14T14:34:14Z","updated_at":"2016-02-22T14:18:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Yoast/wpseo-news/pulls/183","html_url":"https://github.com/Yoast/wpseo-news/pull/183","diff_url":"https://github.com/Yoast/wpseo-news/pull/183.diff","patch_url":"https://github.com/Yoast/wpseo-news/pull/183.patch"},"body":"Fixes #147 \r\n\r\nWhen there are no posts in the news sitemap, the sitemap will not be added to the sitemap index. When there are posts, it will be added to the sitemap index.\r\n\r\nThis issue cannot be merged until https://github.com/Yoast/wordpress-seo/issues/3708 is fixed and merged. This is because the cache is not properly cleared in Yoast SEO. The sitemap index doesn't get properly updated yet, which will currently make this feature not safe yet."},"comment":{"url":"https://api.github.com/repos/Yoast/wpseo-news/issues/comments/187197708","html_url":"https://github.com/Yoast/wpseo-news/pull/183#issuecomment-187197708","issue_url":"https://api.github.com/repos/Yoast/wpseo-news/issues/183","id":187197708,"user":{"login":"moorscode","id":2005352,"avatar_url":"https://avatars.githubusercontent.com/u/2005352?v=3","gravatar_id":"","url":"https://api.github.com/users/moorscode","html_url":"https://github.com/moorscode","followers_url":"https://api.github.com/users/moorscode/followers","following_url":"https://api.github.com/users/moorscode/following{/other_user}","gists_url":"https://api.github.com/users/moorscode/gists{/gist_id}","starred_url":"https://api.github.com/users/moorscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorscode/subscriptions","organizations_url":"https://api.github.com/users/moorscode/orgs","repos_url":"https://api.github.com/users/moorscode/repos","events_url":"https://api.github.com/users/moorscode/events{/privacy}","received_events_url":"https://api.github.com/users/moorscode/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T14:18:29Z","updated_at":"2016-02-22T14:18:29Z","body":"Could you also change the hard `news` reference to the dynamic function call on line 69?\r\n`wpseo_invalidate_sitemap_cache( 'news' );`\r\n"}}