[wp-trac] [WordPress Trac] #2621: get_nested_categories() and
friends use a lot of DB queries
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 1 10:46:45 GMT 2006
#2621: get_nested_categories() and friends use a lot of DB queries
----------------------------+-----------------------------------------------
Id: 2621 | Status: new
Component: Administration | Modified: Sat Apr 1 10:46:45 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: mdawaffe | Reporter: mdawaffe
----------------------------+-----------------------------------------------
get_nested_categories(), cat_rows(), and wp_dropdown_cats() spend at least
one query per category. The attached patch uses the built in caching to
eliminate all but one or two queries. I do not know if this proposed
method is actually any faster.
Note: these are admin-side only functions, so DB hits aren't as important.
--
Ticket URL: <http://trac.wordpress.org/ticket/2621>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list