[wp-trac] [WordPress Trac] #27120: Add object cache to wp_nav_menu() items

WordPress Trac noreply at wordpress.org
Thu Feb 13 07:47:59 UTC 2014


#27120: Add object cache to wp_nav_menu() items
-----------------------------------+-----------------------------
 Reporter:  Clorith                |      Owner:
     Type:  enhancement            |     Status:  new
 Priority:  normal                 |  Milestone:  Awaiting Review
Component:  Menus                  |    Version:  trunk
 Severity:  normal                 |   Keywords:
  Focuses:  template, performance  |
-----------------------------------+-----------------------------
 Leveraging `$menu_items` in the wp_nav_menu() function call with the
 Object Cache shows a drop in queries by 2 for each consecutive call for a
 specific `theme_location`

 Might need a bit more intense testing to ensure it doesn't negatively
 impact anything else using the function, but from a front facing side of
 things it has s ofar not showed any negative effect in my tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list