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
Review uses of WP_Query and consider using no_found_rows , update_post_term_cache and update_post_meta_cache to speed up processing and reduce SQL workload
#6392
Closed
MathieuLamiot opened this issue
Jan 18, 2024
· 2 comments
· Fixed by #6403
Context
A user suggested the following through the Support:
Your query on line 245 of /inc/functions/posts.php can be made 5-10x faster with no_found_rows => true being added. Since you are no totals needed or pagination occurring you will skip the expensive SQL_CALC_FOUND_ROWS that query translates to.
The use of WP Query implies a few steps on top of the query requested. More details here.
To do
Review our usage (at least the main ones) of WP Query and consider the use of the following option: no_found_rows, update_post_term_cache and update_post_meta_cache
The text was updated successfully, but these errors were encountered:
Context
A user suggested the following through the Support:
Referring to this
The use of WP Query implies a few steps on top of the query requested. More details here.
To do
Review our usage (at least the main ones) of WP Query and consider the use of the following option: no_found_rows, update_post_term_cache and update_post_meta_cache
The text was updated successfully, but these errors were encountered: