-
Hi Team,
I’m using both Rank Math Pro and Free versions. We have 171,105 WP posts on our sites. When I enable the sitemap, which is necessary for our site, it causes significant performance issues and the sites go down. Could you please address this issue as soon as possible?
Rank Math SEO -> Version 1.0.224
Rank Math SEO PRO ->Version 3.0.67PHP Configuration
———————
PHP Memory Limit: 1024M
Max input time: 150
PHP time limit: 120
PHP max input variables: 1000Below are the 2 queries keep hitting on the database –
Query -> 1
—————
$where_filter = $this->do_filter( ‘sitemap/get_posts/where’, ”, $post_types );
$sql = ”
SELECT l.ID, post_title, post_content, post_name, post_parent, post_author, post_modified_gmt, post_date, post_date_gmt, post_type
FROM (
SELECT DISTINCT p.ID FROM {$wpdb->posts} as p
{$join_filter}
LEFT JOIN {$wpdb->postmeta} AS pm ONQuery -> 2
———–$where_filter = $this->do_filter( ‘sitemap/post_count/where’, ”, $post_types );
$sql = “SELECT COUNT( DISTINCT p.ID ) as count FROM {$wpdb->posts} as p
{$join_filter}
LEFT JOIN {$wpdb->postmeta} AS pm ON ( p.ID = pm.post_id AND pm.meta_key = ‘rank_math_robots’ )
WHERE (
( pm.meta_key = ‘rank_math_robots’ AND pm.meta_value NOT LIKE ‘%noindex%’ ) OR
pm.post_id IS NULL
The ticket ‘rank_math_robots are causing sites to go down and significant performance issues’ is closed to new replies.