[wp-trac] [WordPress Trac] #35048: custom menu - OPTIMIZE QUERY!

WordPress Trac noreply at wordpress.org
Sun Dec 13 14:17:41 UTC 2015


#35048: custom menu - OPTIMIZE QUERY!
-----------------------------+------------------------------
 Reporter:  selnomeria       |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Menus            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by swissspidy):

 Custom menus are not the only thing that result in a couple of database
 queries.

 For the vast majority of WordPress sites, these queries are not a big
 deal. That's one of the reasons there's no built-in cache in WordPress and
 I'm generally recommending plugins for such a solution.

 > p.s. of course, somehow, "current-menu-item" should be added while
 front-end request..

 That's not really possible with cached output, except when you use
 JavaScript, which is not something core should provide.

 My suggestion is to use one of the many caching plugins available, either
 a specific one for menus or an all-in-one caching plugin. See
 https://wordpress.org/plugins/search.php?type=term&q=cache

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


More information about the wp-trac mailing list