• Resolved barrera

    (@barrera)


    Hi Marko,

    I’ve been having an issue with my sitemap generated by rankmath as every time I edit anything with elementor (even if I don’t update) my sitemap collapses into a 404 page and I have to flush it again by saving permalinks settings and rankmath sitemap settings.

    In addition, I have included the following settings:

    /.*sitemap.*
    /*sitemap.*
    sitemap(_index)?\.xml(\.gz)?
    [a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?

    into my “Never cache the following pages”, “Never minify the following pages” and in the “404 exception list” settings of W3 Total cache plugin.

    In addition, I also created a page rule with the set up of “Cache: bypass” in CloudFlare CDN as mywebsite/*sitemap*

    Finally, I also turned off the AMP caching in the AMP for WP plugin settings; however, the issue persists

    PS. I have been trying to find a solution with the rankmath support in this ticket
    https://support.rankmath.com/ticket/sitemap-keeps-disappearing-after-a-couple-minutes/

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @barrera

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    As I can see the sitemap snippet you want to exclude from the cache is incorrect.
    Try adding the following:

    sitemap(_index)?\.xml(\.gz)?
    [a-z0-9_\-]*sitemap[a-z0-9_\-]*\.(xml|xsl|html)(\.gz)?
    ([a-z0-9_\-]*?)sitemap([a-z0-9_\-]*)?\.xml

    to “404 error exception list:” if the option “Do not process 404 errors for static objects with WordPress” enabled in Performance>Browser Cache
    If Minify is enabled you should also add this to “Never minify the following pages:” field under Performance > Minify > Advanced (section)
    And also, to make sure, add it to Performance>Page Cache>Advanced>”Never cache following pages” field.
    I hope this helps!
    Thanks!

    Thread Starter barrera

    (@barrera)

    Hi Marko,

    Thanks for getting back to me so quickly

    I corrected the snippet; however, the problem reappears when I “visit the site” from my WordPress dashboard (Not even needing to click “edit with elementor”)

    In addition, when I view the source of the sitemap I notice there is an optimisation from w3 total cache: https://ibb.co/Zz5c5ZF – Maybe I’m missing something?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @barrera

    Thank you for the information.
    As you can see in the source (Requested URI is rejected), meaning that the sitemap is not being cached.
    To confirm that this is related to W3 Total Cache, try disabling the settings Performance>General settings one by one, save all settings and purge the cache after each setting is disabled and see which option might be causing this.
    If the issue is still there you should temporarily disable W3 Total Cache and see if the issue persists.
    I hope this helps.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3 Total Cache – RankMath Sitemap – Elementor Issue’ is closed to new replies.