Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
Rank Math creates multiple sitemap for example page-sitemap.xml, post-sitemap.xml, so I would suggest please update the varnish settings as well to target these XML files.
Also, I would suggest adding this or you can go with .htaccess
method : https://rankmath.com/kb/exclude-sitemaps-from-caching/#transient-cache
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thank you
Hi,
Thanks for the update.
How will I enter these sitemaps as exclude in varnish. With or without the .xml? I guess without, so for example only post-sitemap.
https://www.hetbalkonbankje.nl/post-sitemap.xml (
https://www.hetbalkonbankje.nl/page-sitemap.xml
https://www.hetbalkonbankje.nl/product-sitemap.xml
https://www.hetbalkonbankje.nl/category-sitemap.xml
https://www.hetbalkonbankje.nl/product_cat-sitemap.xml
Regarding transient cache settings in functions.php file and above exclude settings. How can I test if all works fine?
Regards, Chris
Hello,
Apologies for the delay as this ticket seems to have been stuck in our drafts section for some reason.
You may need to include the .xml in your sitemap URLs to exclude in varnish.
To test if your sitemaps are already excluded from your cache, you should check your new posts or if the last modified date of the posts/pages is updated in the sitemaps.
Hope that helps.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.