Google Sitemap WP Plugin Tip

If you use the Google sitemap plugin for WordPress it’s probably a good idea to disable the auto rebuild option. This is especially true if you have a large blog and a small server!

Go to Options->Sitemap and uncheck “Rebuild sitemap if you change the content of your blog”.

You can regenerate the sitemap by calling a URL with a secret key. It’s listed on the configuration page. Copy it into your bookmarks or make a cron job to call that URL at a time when your server isn’t busy. Posting to this blog would timeout quite often if the server was loaded in any way. If it wasn’t loaded before, it almost always was after! It took some time for me to figure out that it was the Sitemap generator.

The sitemap generator plugin is a great program, it does what it says on the box, but disable to the auto-update feature if you’re having problems posting!

23 thoughts on “Google Sitemap WP Plugin Tip

  1. Yeah, I found that out myself while running a big site (50,000+ posts) on a small VPS server. It does better now on dedicated, but I had to disable portions of the plugin.

  2. Well, no problems posting for me, but thanks anyway – when I went to check this, I noticed sitemap.xml creation was failing altogether!

    BTW, what version are you on? I don’t have that exact option…

  3. Posting from a blog client would trigger the same events as using in the WordPress Write screen.

    Next on the agenda is to look at the the JOINs in UTW. There’s one particular one linking the posts table and the post2tag table that is a dog on this blog because of the number of posts.

  4. The sitemap generator plugin is a great program, it does what it says on the box, but disable to the auto-update feature if you’re having problems posting!

    What sort of problems?

    I think the main reason to disable auto-update would be to reduce load on the server?

  5. TechZ – my main problem included timeouts because the sitemap took so long to complete, and yes, the load on the server. I thought those would be self evident so I didn’t mention them.
    I still use it though as it does it’s job well!

  6. LcF – it looks like Cpanel has a nice gui for manipulating cron jobs. Here’s some docs I found on the subject:
    You need to verify that “wget” is available on your machine and then set up a job that uses wget to fetch the “generate sitemap” url.
    wget -q -O – “” > /dev/null

    I wouldn’t call it more than once a day, or perhaps twice a day because of the load it generates.

  7. @Mark Wegner – I use to automate things like this. Just give it the unique URL to rebuild the sitemap and it’ll visit that page on the schedule you define,

  8. Thanks for the advice and for the cPanel guide hints! I’ll do this, if I can figure out how to have the cron job added. I can also agree that it is a great plugin, well worth using! Google searches brings me half of all my visitors (which is around 3k/day) and I think that the sitemap plugin has an obvious part in that.

  9. I have to ask Joe’s question as well – what version? I’m running 2.7.1, which appears to be the current, non-beta, version.

    Is the beta pretty stable, then?

  10. It looks like I’m running version 3.0b1, a beta version. It’s very stable, and probably worth upgrading if the disable auto-update option isn’t available in the current non-beta releases!

Leave a Reply

%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.