The sitemap is currently submitted as something is posted. This is not good since submitting the sitemap depends on how fast google's server can process an HTTP request and that delay is passed on to the user. Running on exit is best because the page is sent to the user by that time.

CommentFileSizeAuthor
gsitemap.module.diff.txt2.81 KBdrumm

Comments

SamAMac’s picture

Status: Needs review » Fixed

Looks good. Committed to 4.7 dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)