I have a custom hierarchical taxonomy and I recently imported a decent bunch (15k+) of terms with custom fields (term meta).
Since then admin pages, namely taxonomy add/edit page and CPT (to which this taxonomy is assigned) page became incredibly slow.
I tracked the problem down to update_meta_cache function that fires on these pages on every load. It selects all terms from the database each and every time, here’s a screenshot of Query Monitor output: http://imgur.com/a/FX188
This doesn’t happen with ‘flat’ (non-hierarchical) taxonomies though. Why does it update meta cache for all terms on every page load? Is there a neat way to disable this behavior?
- The topic ‘Hierarchical taxonomy and update_meta_cache’ is closed to new replies.