• I upgraded Yoast SEO to the last free version as well as WP Super Cache. And after those updates I noticed the XML sitemap page gets broken. When WP Super Cache is deactivated the XML sitemaps are OK. So where is the problem?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter tonyccc

    (@tonyccc)

    I can confirm that on a test fresh installation with the latest WP and with Yoast SEO 5.1 and WP Super Cache 1.5.3 that WP Super Cache BREAKS the sitemap XML function of Yoast SEO. Please investigate!

    Thread Starter tonyccc

    (@tonyccc)

    Tested with an older version of WP Super Cache 1.4.8 and it works fine with Yoast SEO 5.1.

    Thread Starter tonyccc

    (@tonyccc)

    Another fresh install on another server with the same problem – WP Super Cache Version 1.5.3 breaks Yoast SEO sitemap XML – tested on 4.4 and 5.1 version.

    Tried adding the rules: ([a-z]+)?-?sitemap.xsl but with no luck – the problem persists.

    Maybe you’ll investigate too.

    Bye,

    I am also using WP Super Cache Version 1.5.3 with Yoast 5.1 but the sitemap problem does not appear on my config.

    Same Identical problem. The only solution is to deactivate WP Super Cache or find another SEO plugin…

    Cheeers…

    Update

    Same issues with AIOSEO, and again the issue is caused by WP Super Cache. Deactivated, back to normal apparently.

    Cheers…

    • This reply was modified 7 years, 3 months ago by andreadelriva.

    Anyone has figured out any solution?

    For the news, with The SEO Frame Work this problem does not occur, but i had to deactivate WP super cache on all my sites with AIOSEO and YOAST.

    We are looking into this. Here’s a Github ticket about it. You can disable caching of the sitemap until it’s fixed by adding the following to the rejected strings textbox on the advanced settings page:

    sitemap(_index)?\.xml(\.gz)?
    ([a-z0-9_\-]+)?sitemap\.xsl
    [a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?

    And delete your cache files.

    Hi @donncha

    Thanks, it works ??

    I have a fix, but I need people to test it.

    Grab this wp-cache-phase2.php and copy it over the file of the same name in your wp-content/plugins/wp-super-cache/ directory.

    As a side effect it will stop attempts to cache pages it doesn’t know about, but will send a message to the debug log saying,
    wp_cache_ob_callback: wp_super_cache_query is empty. Not caching unknown page type.

    Those pages are going to be pages that won’t have been cached previously like ajax files, JSON requests, and files loaded directly by plugins but it would be very helpful to get some feedback on these changes before they’re pushed out to a million websites. ??

    Good day.

    I have the same problem that when I enable the caching that the site is broken. Problem is that i am still fresh at all of this and do not know where to change or add the content you gave above.
    Could you please help me step by step.

    Christiaan

    I’ve updated the development version of the plugin code here. This has a fix for the problem you’re seeing here so I’d appreciate if you could test it.

    You can find information about the development version, install instructions and a download link on this page: https://odd.blog/y/2o

    See this Github page for discussion about the problem, and thanks to stodorovic for his help with it.

    https://github.com/Automattic/wp-super-cache/pull/346

    Ping @tonyccc, @cellissgs, @andreadelriva, @ironmanixs – check out the development version at https://odd.blog/y/2o for a fix. Instructions included.

    Unfortunatedly I don’t have direct access to the server end, a person manage it on my behalf. However, I’ll try to help with some tests asap.

    My sitemap:
    sitemap.xml
    sitemap-home.xml
    sitemap-posttype-page.xml
    sitemap-taxonomy-review-category.xml

    how to fix Super Cache so it does not break my sitemap?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘WP Super Cache in conflict with Yoast SEO 5.1 ?!? Breaks sitemaps’ is closed to new replies.