You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement related to a problem? Please describe.
On enterprise level websites, some taxonomies can reach large number count (10k+). I know it can be up to the client to clean that up but sometimes that will just not happen.
The large number of terms results in the call to get_terms() in the facets widget to be a large SQL query and updating the cache (when available) due to get_terms() functionality itself.
Describe the solution you'd like
Passing the update_term_meta_cache argument as true in the default arguments for get_terms().
Describe alternatives you've considered
Using global $ep_facet_aggs to limit the requested terms to the ones that actually have results.
Additional context
The ep_facet_search_get_terms_args filter definitely allows for optimization so possibly just passing the update_term_meta_cache as true argument in the defaults might suffice.
Is your enhancement related to a problem? Please describe.
On enterprise level websites, some taxonomies can reach large number count (10k+). I know it can be up to the client to clean that up but sometimes that will just not happen.
The large number of terms results in the call to get_terms() in the facets widget to be a large SQL query and updating the cache (when available) due to
get_terms()
functionality itself.Describe the solution you'd like
update_term_meta_cache
argument as true in the default arguments forget_terms()
.Describe alternatives you've considered
global $ep_facet_aggs
to limit the requested terms to the ones that actually have results.Additional context
The
ep_facet_search_get_terms_args
filter definitely allows for optimization so possibly just passing theupdate_term_meta_cache
as true argument in the defaults might suffice.Implementation from above:
The text was updated successfully, but these errors were encountered: