NO BUG: Bricks & RankMath Sitemap

Hello.

So, I have 3 websites on Digital Ocean Droplet. All of them use the RankMath SEO plugin. Two are built with Bricks and the third one with a free theme.

Two websites that are built with Bricks (one uses WooCommerce) has a sitemap issue. When I add it to Search Console, it can’t read it. The third website doesn’t have that problem.

I don’t know if it’s a Bricks bug but because third website has no issue, I thought perhaps bricks has a bug.

When I check sitemaps, it works perfectly but Search Console can’t fetch it. Also, Google Bot doesn’t crawl those website as much as the third one.

Hi Lasha,
Thanks so much for your report!

Could you have activated this toggle in the WordPress reading settings?
If so, it will probably block the request.

Alternatively, please have a look here:

Unfortunately, there is no way to speed up the fetching of sitemaps, so you should wait a certain amount of time.

Best regards,
timmse

Yes, the website is indexed and I tried everything that RankMath recommends.

Now I added each sitemap (post, pages, products) separately instead of sitemap.xml to Search Console and it works. will wait for several days and see what happens.

So, i had this issue on https://fiber.ge and it was caching issue as RankMath support told me. They gave me a script and now it works.

Thanks for the feedback! Maybe you can share the script if it is helpful for others.

1 Like

Oh. I forgot. This is the php script you need to insert in functions.php

/** 
 * Filter if XML sitemap transient cache is enabled.
 *
 * @param boolean $unsigned Enable cache or not, defaults to true
 */
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

However, it might not always be needed. I think my server needs configuration, so I need that script. I have never had this issue with other hosting.