• Resolved net

    (@krstarica)


    What happened to “Split by” year/month/day option suitable for large websites?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Hi, that option is only available if you select Plugin at the Server option on Settings > XML Sitemap.

    When “WordPress” is selected, sitemaps will be split by the number set at Maximum posts per sitemap set on the Post Types tab.

    Hope that helps 🙂

    Thread Starter net

    (@krstarica)

    Thanks. How about “daily” split?

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    More split by options will come in the advanced plugin… Looking into dayly and weekly split.

    Do you have very many posts per day?

    Thread Starter net

    (@krstarica)

    Yes, dozens daily.

    Also a bunch of things need to be optimized, including adding this code to fix the slowness:

    add_filter('pre_get_lastpostmodified', array($this, 'pre_get_lastpostmodified'), 10, 3);
    public function pre_get_lastpostmodified ($lastpostmodified, $timezone, $post_type)
    {
    return _get_time( 'gmt', 'date');
    }
    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    When are you seeing slowness? On the sitemap index or on the posts sitemaps? Do you have the option “Automatic priority calculation” activated? That option is “expensive” and can make sitemaps slow…

    Thread Starter net

    (@krstarica)

    It’s terribly slow everywhere, primarily because “post_modified” column is not present in indexes.

    Had to comment out a bunch of things.

    If you are interested in implementing the changes (actually to be able to change some things via settings page), I can you send you the older changed version via email.

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Hi, do you have the options “Automatic priority calculation” and/or “Update the Last Modified date on each new comment” activated for any post types?

    Thread Starter net

    (@krstarica)

    We commented out all of that. Including meta box and other unnecessary things.

    But the largest issue was SQL using “post_modified” field, which is not present in indexes.

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    If you set the “Server” option on Settings > XML Sitemap to “WordPress”, do you still get the same slowness everywhere?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.