WebDevStudios / taxonomy-switcher

Taxonomy Switcher
GNU General Public License v2.0
29 stars 5 forks source link

Add cache clearing for switched taxonomies #8

Closed tw2113 closed 2 years ago

tw2113 commented 2 years ago

After we convert, especially for hierarchical, run clean_taxonomy_cache() for the chosen taxonomy.

https://developer.wordpress.org/reference/functions/clean_taxonomy_cache/

Original request: https://wordpress.org/support/topic/taxonomy-hierarchy-not-showing-up-on-the-terms-list-admin-page/

tw2113 commented 2 years ago

Related: https://github.com/WebDevStudios/taxonomy-switcher/pull/5

The PR uses https://developer.wordpress.org/reference/functions/clean_term_cache/ so it's a good question of which is more efficient/"better"? clean_term_cache() vs clean_taxonomy_cache() ?

tw2113 commented 2 years ago

Merged in via #5