flush_rewrite_rules
-
Hi, in short, when using Pods in conjunction with Yoast SEO we realized that when Yoast is updated we have to reset our permalink not to have a 404 page when trying to access the Pods Custom Post Type Archive Page.
The back story is that since we are using Pods on several websites spanning over several servers we tried to narrow what could cause that from time to time our Pods CPT Archive Page would return a 404. We realized that Yoast SEO is present on all these sites and that it calls the flush_rewrite_rules() function when upgrading (in file class-upgrade.php) and that it would explain the behaviour that we are seeing in our clients websites. We have eliminated any other common plugins that could have an effect on the permalinks either because the use of flush_rewrite_rules is well defined and used in specific user triggered actions or because they don’t use this function at all.Is the flush_rewrite_rules really necessary when upgrading Yoast SEO? Could it be conditional per a user’s request after an upgrade?
The topic ‘flush_rewrite_rules’ is closed to new replies.