Support » Fixing WordPress » Hierarchical taxonomy and update_meta_cache

  • Resolved Nazar Hotsa

    (@bugnumber9)


    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?

    • This topic was modified 5 years, 7 months ago by Nazar Hotsa.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hierarchical taxonomy and update_meta_cache’ is closed to new replies.