Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In Terms Indexable
query_db
, for term count, use wp_count_terms()
…
…instead of `WP_Term_Query` to avoid `_prime_term_caches` This is because on a DB with a lot of terms, calling `prime_term_caches` triggers an expensive, unnecessary query that isn't required for the ultimate term count. Also, add `hierarchical` => `false` for performance, otherwise it performs a no limit query
- Loading branch information