• Resolved Zol

    (@zol1111)


    Hi,

    I recently noticed that the video sitemap was black. contacted Rankmath, and when they checked it, they found that this issue was caused by w3 total cache.

    When the plugin is disabled then the Video Sitemap is working fine.

    When the plugin is active, it is adding an opening link tag to the stylesheet of the video sitemap and that is causing the issue.

    How can I fix this ? thank you for your help.

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

    (@vmarko)

    Hello @zol1111

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    depending on the features enabled in W3TC, you can exclude sitemap from being cached:
    If you have “Do not process 404 errors for static objects with WordPress” enabled in Performance>Browser Cache, you should add 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 Minify is enabled you should also add this to the “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.

    Also, make sure to disable the option Cache feeds: site, categories, tags, comments in Performance>Page Cache> as that may cache sitemaps also.

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘issue to video sitemap caused by w3 cache’ is closed to new replies.