• Resolved nitinvarshney

    (@nitinvarshney)


    I Really love RankMath SEO plugin and i am using it since last 7+ years but sometimes It often happens that the Post sitemaps did not Update automatically. when i change Links per sitemap, then the sitemaps update Please help me to fix this issue. I loss my traffic and ranking too.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • mesmer7

    (@mesmer7)

    I noticed this yesterday. I changed my permalink structure. Made a mistake and changed it again. The first time, the sitemap updated automatically. But the second time I had to go into the sitemap settings and make a change before the sitemap updated.

    Thread Starter nitinvarshney

    (@nitinvarshney)

    Rankmath Support please Solve my problem ASAP

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @nitinvarshney and @mesmer7,

    Thank you for reaching out to us.

    This issue may still be a caching issue from your end.

    Please follow the steps below:

    Please ensure to exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    If that doesn’t help, kindly apply this filter code to your theme’s functions.php file.

    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Thread Starter nitinvarshney

    (@nitinvarshney)

    Not working sir actually m using Nginx server, Can this be an issue with naginx

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @nitinvarshney

    Please follow this guide:
    https://rankmath.com/kb/xml-sitemaps-nginx/

    Looking forward to helping you. Thank you.

    Thread Starter nitinvarshney

    (@nitinvarshney)

    Sir the code u mentioned is already added in Nginx config file.. but we facing the issue again and again,,, when i change Links Per Sitemap like 200 to 210, 220, 250 then the sitemaps works properly but for some time like 5-6 hrs only. please help to fix this issue please please

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @nitinvarshney,

    If the sitemap is getting updated and working fine after changing the permalinks, it means that it is getting cached either by your server or a caching plugin. Please make sure to add the exclusion rules mentioned in the guide we shared in our previous reply. Also, make sure to add the following filter to your site:

    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);
    

    Once done, please make sure that you remove any XML files from wp-content\uploads\rank-math.

    Let us know how that goes. Looking forward to helping you. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sitemaps didn’t Update Automatically’ is closed to new replies.