[wp-trac] [WordPress Trac] #11381: display_page_row() generates boat loads of needless queries
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 10 12:41:45 UTC 2009
#11381: display_page_row() generates boat loads of needless queries
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Optimization | Version:
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
on sites with many static pages that are spread across multiple parents,
display_page_row() triggers multitudes of calls to the db.
specifically, it's repeatedly calling get_pending_comments_num(). it's
also calling get_editable_user_ids() and wp_dropdown_users(), both of
which do not seem to cache their results in case they're used several
times on the same page.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11381>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list