lscache_wp icon indicating copy to clipboard operation
lscache_wp copied to clipboard

LiteSpeed Cache not compatible with All in One SEO sitemap

Open arnaudbroes opened this issue 3 years ago • 7 comments

Hey everyone,

One of our users has reported an issue where LiteSpeed Cache is not able to parse the index of All in One SEO. We believe that this is partially because we use CDATA tags to escape the data in our sitemap, but even if we remove those, LiteSpeed Cache still isn't able to crawl the sitemap.

Another reason why this does not work is because you are using SimpleXML to parse the XML structure of the sitemap, then pass that into an empty check, which still results to true even if there is a valid value.

See these two links for more info about that - https://ikriv.com/blog/?p=1856 https://try2explore.com/questions/10122221

The steps we've taken are:

  1. Go to LiteSpeed Cache > Crawler > Sitemap Settings
  2. Enter the Sitemap URL of All in One SEO in the Custom Sitemap field and Save Changes
  3. Click on the Map tab, and then click on Clear Crawler Map
  4. Refresh Crawler Map

@flschaves and I from the All in One SEO team would be more than happy to work with you on adding compatibility and figuring out a game plan to address this.

arnaudbroes avatar Jul 12 '21 13:07 arnaudbroes

Hi @arnaudbroes & @flschaves :),

Glad to hear from you! Thanks for the report.

The issue is fixed in v4.2-rc3 https://github.com/litespeedtech/lscache_wp/commit/fe438450aed94a7a28d52433ded3ad28a7419997

hi-hai avatar Jul 12 '21 15:07 hi-hai

I also appended your plugin to our supported plugin list.

https://github.com/litespeedtech/lscache_wp/commit/fe438450aed94a7a28d52433ded3ad28a7419997#diff-9e6e4772050998a5c0dc3c61acf3dab0a7e594566171fa5746d6b62f9598efb6R218

hi-hai avatar Jul 12 '21 15:07 hi-hai

@hi-hai thank you! Highly appreciate the quick turn-around, and that you've added us to your list. 😄

arnaudbroes avatar Jul 12 '21 15:07 arnaudbroes

@hi-hai looks like this issue has been reintroduced in 4.4.5. It was reported by a user of AIOSEO here (https://wordpress.org/support/topic/sitemap-xml-not-compatible-with-litespeed-cache/) and I also confirmed it myself. Works fine in 4.4.4.

arnaudbroes avatar Dec 26 '21 14:12 arnaudbroes

I have same issue. Impossible to access to sitemap even adding on Cache - > Excludes & CDN -> Exclude Path

/(.)sitemap(.).xml /(.*)sitemap.xsl /sitemap_index.xsl /sitemap_index.xml /page-sitemap.xml /e-landing-page-sitemap.xml /job-sitemap.xml /candidate-sitemap.xml /employer-sitemap.xml

EddiePiazza avatar Dec 29 '21 18:12 EddiePiazza

its a nightmare. sitemap.xml not loading but if use ctrl+shift+r i can see. but not google.

halilnevzat avatar Oct 04 '22 14:10 halilnevzat

Hi, the Yoast SEO sitemap issue is still existing, any idea when you will fix this?

cyrix2000 avatar Feb 22 '23 11:02 cyrix2000