Issue with transient in WP 4 and WP SEO 1.6.3
-
We had the following issue. Our sitemaps XML files were not being updated properly even if we added new content to the site periodically. After we changed the max_entries value in WP SEO plugin settings page the max entries value was not taking any effect. Originally it was 1000 and changed it to 200 assuming this could help to fix the issue. However, after the change some sitemap files were showing 869 entries and there were duplicated values.
We thought it was something related to Cache (pages being cached by WP Super Cache for example). In fact, we started to follow and debug this deactivating other popular plugins like WP Super Cache and Autoptimize but it was still not working.
Later, we realized downgrading the version of WP SEO from 1.6.3 to 1.5.3.3 it fixed the issue, so we thought it was some sort of bug in a recent release of WordPress SEO. The issue was happening in the attachment sitemap only (yes, we have it enabled) so it is unusual in any typical installation of WordPress.
After going back and forth we finally saw that the _transient_wpseo_sitemap entries were not updated or deleted. This was in fact the issue and after we deleted manually the entries in the wp_options table in WordPress, it started to regenerate the sitemaps properly. This happened even if we Deactivated the plugin and Activated it again, so this fix https://github.com/Yoast/wordpress-seo/issues/1266#ref-commit-a469df2 should be running properly.
I am not sure if this is related to WordPress SEO plugin or it is a general problem deleting or using transients in WordPress 4.0, however I wanted to share our experience dealing with these transients in order to get the the sitemap XML and sub sitemaps updated properly, otherwise you can experience that Google WebmasterTools is not indexing new content or find lot of duplicated entries in the sitemap XML pages.
Regards,
Julian @ SlideModel
- The topic ‘Issue with transient in WP 4 and WP SEO 1.6.3’ is closed to new replies.