[wp-trac] [WordPress Trac] #18369: Pre-cache post_meta for nav_menu_items rather than querying one at a time
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 19 01:04:09 UTC 2011
#18369: Pre-cache post_meta for nav_menu_items rather than querying one at a time
-----------------------------+------------------
Reporter: mitchoyoshitaka | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Performance | Version:
Severity: minor | Resolution:
Keywords: has-patch |
-----------------------------+------------------
Comment (by nacin):
Replying to [comment:3 mitchoyoshitaka]:
> Now down to 32 queries.
Can you post them? Also the code you're using for wp_nav_menu (and any
associated callbacks or walkers).
> Why are you keeping update_post_term_cache false on the client side?
There's no way core does this all of these queries on its own. I suspect
something else is causing quite a number of queries. We would have fetched
postmeta initially if we had needed them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18369#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list