Sitemap doesn’t show all pages

The simple sitemap plugin only displays a few of the 2,500 pages and 1,200 posts at http://indianapolis-indiana.funcityfinder.com/sitemap.xml.

This message is posted at the bottom of sitemap.

<!– Sitemap was loaded from a cached file –>

How do I fix this?

  • drmike
    • DEV MAN’s Mascot

    Depends. What are you using for sitemap and caching plugins?

    If you;re using the simple sitemap plugin available from this site, please remember that it;s a simple sitemap plugin and only displays the last 25 pages or posts. If you need something more detailed, we’ve always suggested using Arne’s sitemap woirdpress plugin.

    If you search the forums for ‘sitemap’, I released a "fix" that should display all of the pages and posts although I never heard back on it. It and Arne’s plugin have been referenced a number of times.

    Hope this helps,

    -drmike

  • Mike Woods
    • New Recruit

    I’ve tried off and on for 5 months to get Arne’s plugin working on my sites: funcityfinder.com and funhomefinder.com.

    The forums have not been responsive or helpful. I tried to contact Arne to see if I could pay him or one of his staff to install it for me. No response.

    I tried to install WP SuperCache also, without success. I had to manually try to remove all of the files because it crashed my blogs. I’m wondering if I missed something and the Simple Sitemap I installed from this site was using a cache that I can’t find to assemble the sitemap.

    I didn’t realize that the Sitemap would only produce a small sampling of the pages for the xml sitemap. Why would anyone want to have a sitemap of only a small fraction of the pages on the site?

  • Andrew
    • Champion of Loops

    Hiya,

    Why would anyone want to have a sitemap of only a small fraction of the pages on the site?

    The limit is low to keep resource usage in check. It takes a lot of server resources to generate a sitemap with 2,500 pages and 1,200 posts. For a single WP blog that’s not a big deal. However, if you have 30K WPMU blogs all with hundreds of posts then you’re looking at a lot of server resources being spent on sitemaps. Even if you had just 5K blogs but they were all (or most) very active and they all had hundreds of posts you’d be likely to get kicked from a shared host.

    So basically our Simple Sitemaps plugin is WPMU friendly. You’re always welcome to adjust the number of posts and pages by editing the plugin.

    Thanks,

    Andrew

  • Mike Woods
    • New Recruit

    Andrew,

    Thank you. Your post helped a lot. I changed this line

    class Incsub_SimpleSitemaps {

    var $totalposts = 20000; // Number of posts to display

    in the simple-sitemaps.php (mu-plugin folder) from 25 to 20000. Now all of my posts and pages appear in the xml sitemap. It’s fast as works very nicely.

    Did I miss any other changes I need to make?