Yoast SEO Sitemaps Not Building Properly with WP-FFPC
-
Yesterday I switched from W3 Total Cache to WP-FFPC, and everything is working well, and faster, thanks!
But, my sitemap generated by Yoast SEO isn’t picking up any of my blog posts or pages. It is picking up a few pages my WooCommerce products and categories, but these are most of the pages and product categories that I have added to the Exceptions list.
Basically, anything that is being cached by WP-FFPC is missing from my sitemaps.
I’m not sure if this is correct, but I was doing this before, so I have added the following to my WP-FFPC Exception list:
sitemap(_index)?\\.xml(\\.gz)?|[a-z0-9_\\-]+-sitemap([0-9]+)?\\.xml(\\.gz)?
I also still have the following in my nginx configuration:
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;I’m not sure if this is important, but my server is running php 5.6 and APCu, so I didn’t use any of the memcached related strings in your suggested nginx configuration page.
As far as I can tell, the caching itself is working fine, except for this sitemap issue.
The actual sitemap is here:
https://www.martinbaileyphotography.com/sitemap_index.xml
If you click on posts, you should see around 500 blog posts from the last 10 years, yet it contains just a single link to my blog, and none of the other posts.
https://www.martinbaileyphotography.com/post-sitemap.xml
Any help you can possibly offer is very much appreciated.
Regards,
Martin.
- The topic ‘Yoast SEO Sitemaps Not Building Properly with WP-FFPC’ is closed to new replies.