Hi Cheefoo,
Thanks for getting in touch with us.
β1. Please delete the sitemaps from the Google Search Console.
β
β2. Clear your website cache and add sitemap_index.xml and *-sitemap.xml to the exclusion list in your Cache plugin.
β
β3. Add sitemap_index.xml file again to your Google Search Console.
β
βThat should do the trick.
β
βHope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Even when if disable the W3 Cache plugin, the sitemap still shows only 4 posts. Looks like a bug to me.
I look through your knowledage base, it looks like there’s a number of sitemap issues. Please help to escalate this issue as a high priority.
Hi,
If you look at the page source of that sitemap, you will notice that it is still being cached:
https://i.rankmath.com/JviS18
Please try to add the exact file names in the exclusion list and see if that works:
post-sitemap.xml
page-sitemap.xml
You can also disable Rank Math’s in built cache and see if that works:
/**
* 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', 'false');
Finally, share a link to the posts that aren’t included and do note that posts/pages that are set as noindex will not be included in the sitemaps.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Where should I add to disable Rank Mathβs in built cache ?
Which section of W3 exclusion list to be added?
This url is not added to post: https://www.connectbit.com/cloud-file-sharing/
Hello,
Thank you for contacting Rank Math today.
Where should I add to disable Rank Mathβs in built cache ?
This code should go in your theme’s functions.php file.
Which section of W3 exclusion list to be added?
Please add the exclusions to pages that should never be cached on this plugin’s settings.
Looking forward to helping you. Thank you.
ββββββ
It looks fine after adding these url to w3 cache “Never cache the following pages” if you’re using page cache.
sitemap_index.xml
post-sitemap.xml
page-sitemap.xml
Hope this help anyone facing similiar issues.
Hello,
Thank you for contacting Rank Math today.
I am glad that you were able to fix this π
Feel free to contact us should any other problems come up. Thank you.
ββββββ