Closed d--j closed 7 months ago
It's been on my list to remove this anyway, since Google has deprecated the endpoint, and will be EOL'ing it shortly:
https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping
Addressed in: https://github.com/nystudio107/craft-seomatic/commit/23ff111115839b8f452aed6f2ff8c1cc1584d3a7 & https://github.com/nystudio107/craft-seomatic/commit/2159f8268543c09b952493af9423e9a1cc5607f5
Craft CMS 3:
You can try it now by setting your semver in your composer.json
to look like this:
"nystudio107/craft-seomatic": "dev-develop as 3.4.68”,
Then do a composer clear-cache && composer update
…..
Craft CMS 4:
You can try it now by setting your semver in your composer.json
to look like this:
"nystudio107/craft-seomatic": "dev-develop-v4 as 4.0.37”,
Then do a composer clear-cache && composer update
Describe the bug
When batch-updating entries via CLI (thousands of them) we sometimes get 429 responses from the Google Sitemap submitting endpoint. They get logged as error and pollute our logging and alerting:
To reproduce
N/A
Expected behaviour
Submitting sitemap changes should only happen once in a while – but at least only once for a single request/script run. Also this error might better be logged as warning – since nothing is really broken when this request failed.
Recommodation
Just remove the ping functionality. According to https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping it will only work until the end of the year anyway. Then every single request will produce a 404 and will be logged as an error (and will destroy our error alerting in the process).
Versions