[wp-trac] [WordPress Trac] #37079: Add new filter pre_wp_get_nav_menu_items

WordPress Trac noreply at wordpress.org
Thu Aug 17 18:32:02 UTC 2017


#37079: Add new filter pre_wp_get_nav_menu_items
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by david.binda):

 Hello there! After looking into performance of the `wp_nav_menu` function
 and possibilities of caching the nav menus, I came to the same conclusion
 as @spacedmonkey . Such a filter, as proposed in this ticket, could be
 used for effectively caching nav menu items in case persistent object
 caching is used.

 There currently is no good way to cache the nav menus, unless breaking
 classes indicating current page and it's ancestors when caching the final
 output.

 What could be done in order to keep this ticket moving?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37079#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list