Wordpress-seo: Way to clear the "breadcrumb" cache?

Created on 20 May 2020  路  6Comments  路  Source: Yoast/wordpress-seo

Is your feature request related to a problem? Please describe.

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.

Describe the solution you'd like

Some way to purge all Yoast cache. Particularly for breadcrumbs.

Why do you think this feature is something we should consider for the Yoast SEO plugins?

Stopping devs from going cuckoo.

Additional context

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.

wait for feedback

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.

All 6 comments

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!

  • [x] I've read and understood the contribution guidelines.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

How can we reproduce this behavior?

  1. Create a site using WP Engine. (For whatever reason I did not run into this on my localhost site. Yes, I did try purging the WP Engine cache multiple times)
  2. Update one or more primary categories, as I showed above, with `update_post_meta

Technical info


* Which browser is affected (or browsers):
- [x] Chrome
- [x] Firefox
- [ ] Safari (likely affected)
- [ ] Other

Used versions

  • WordPress version: 5.4.1
  • Yoast SEO version: 14.1
  • Gutenberg plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:

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.

Was this page helpful?
0 / 5 - 0 ratings