[wp-trac] [WordPress Trac] #23627: Allow plugins to short-circuit wp_nav_menu, good for performance
WordPress Trac
noreply at wordpress.org
Wed Feb 5 13:33:27 UTC 2014
#23627: Allow plugins to short-circuit wp_nav_menu, good for performance
------------------------------------+------------------------------
Reporter: kasparsd | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.5.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Comment (by Rarst):
+1, must have - menus are slooow.
For those who need it right now, there is a roundabout way to make this
happen by forcing core to see no menus at all, which triggers custom
callback. See implementation in my Fragment Cache plugin
https://bitbucket.org/Rarst/fragment-cache/src/tip/php/class-menu-
cache.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23627#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list