So, I mass-updated my primary categories to be used in breadcrumbs, particularly by using this following line.
update_post_meta( get_the_ID(), '_yoast_wpseo_primary_category', $my_desired_category );
I'm experiencing some weird things. On my dev local site, it works fine. In production, the yoast_breadcrumb function seems to be cached.
It still displays the old breadcrumb value. Tried clearing all sorts of web cache of course. I think it's something Yoast related because when I run the get_post_meta right next to it, it displays the proper value.
Some way to purge all Yoast cache. Particularly for breadcrumbs.
Stopping devs from going cuckoo.
P.S. Would be very grateful 馃檹馃徎 to know how to temporarily solve this issue in the meantime, whether it's clearing some database table, directory, or what. Cheers.
Can you please provide information which is requested in Bug report template so we can reproduce the bug you are facing? It seems this can be a bug but not a feature requests.
Thanks!
* Which browser is affected (or browsers):
- [x] Chrome
- [x] Firefox
- [ ] Safari (likely affected)
- [ ] Other
I've disabled all plugins with this issue still appearing.
@DougBeney I have a feeling this can be caused by the new indexables. Can you check if reindexing solves the wrong settings? wp yoast index --reindex
while ( true ) {
echo 'Thank you @Djennez!';
}
Aw, man. This issue was stumping me for days and I'm so happy to be past it. :fireworks:
@dariaknl Will there be any other way yo clear index without wp-cli? Just released website through backuping and met this problem, maybe, it'd be cool to do it with button in admin panel or something like this.
@timurkayzer at the moment, there is no such feature without using WP-CLI or installing our Yoast Test Helper plugin (available on wordpress.org). With the latter option, you can install the plugin, go to tools -> Yoast Test Helper and hit the "Reset migrations and indexables" button. After that, you will receive the notification again to index your site.
Most helpful comment
@timurkayzer at the moment, there is no such feature without using WP-CLI or installing our Yoast Test Helper plugin (available on wordpress.org). With the latter option, you can install the plugin, go to tools -> Yoast Test Helper and hit the "Reset migrations and indexables" button. After that, you will receive the notification again to index your site.