Forums

Make it so it rebuilds daily rather then rebuilding by every post? (4 posts)

  1. vmirjamali
    Member
    Posted 4 years ago #

    Hi I'm running wordpress with around 7000 posts and every time I post it causes the server to peak massively. I now make it so I have to manually rebuild it every time I get a chance to.

    Any way you can add a feature that will rebuild the Sitemap and notify the search engines, by a set cron system of some sort? Like once per night or something like that?

    Thanks! Your plugin the really the greatest.

  2. Michael Torbert
    WordPress Virtuoso
    Posted 4 years ago #

    This thread has neither an appropriate title nor is it a member of the plugin's threads. It is very possible that the plugin author will never see this.

    To address your issue, if you go to the configuration page for the plugin, uncheck "Rebuild sitemap if you change the content of your blog" and then you can rebuild it when you are ready rather than having it do it automatically.

    If you're interested in configuring your crontab, function BuildSitemap() is the function in sitemap.php that builds your xml.

  3. Arne
    Member
    Posted 4 years ago #

    Hi vmirjamali,

    yes, that's possible. Just open the plugin configuration page and have a look at the "Enable manual sitemap building via GET Request" option. Activate it, click on the "[?]" next to it and you'll see a URL which will start the build process.

    With wget and crotab it should be no problem to build the sitemap every night.

  4. ericr23
    Member
    Posted 3 years ago #

    Hello. I have tried setting up a crontab job with

    wget http://www.domain.org/?sm_command=build&sm_key=...

    and, when that didn't work,

    curl http://www.domain.org/index.php -d sm_command=build -d sm_key=... -g

    which didn't work either.

    Please help!

Topic Closed

This topic has been closed to new replies.

About this Topic