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

WordPress Trac noreply at wordpress.org
Sun Dec 13 14:11:37 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:
-----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Menus


Old description:

> hi..
> i had an idea - developers should have an ability to set a constant i.e.
>
> USE_STATIC_CUSTOM_MENU('menu_name') = true;
>
> in general, output of custom_menus on front-end, takes long (sometimes 1
> second)..
> so, i think, that the custom-menu output should be saved as static
> string, and that should be outputed on FRONT_END request by visitors...
> and that STATIC string should be changed/ updated every time the custom-
> menu is edited, or when any of that custom-menu's item is modified...
> i think, it will save huge resources over millions of sites/hosting..
>
> p.s. of course, somehow, "current-menu-item" should be added while front-
> end request..
> https://wordpress.org/plugins/feature-request/

New description:

 hi..
 i had an idea - developers should have an ability to set a constant i.e.

 USE_STATIC_CUSTOM_MENU('menu_name') = true;

 in general, output of custom_menus on front-end, takes long (sometimes 1
 second)..
 so, i think, that the custom-menu output should be saved as static string,
 and that should be outputed on FRONT_END request by visitors...
 and that STATIC string should be changed/ updated every time the custom-
 menu is edited, or when any of that custom-menu's item is modified...
 i think, it will save huge resources over millions of sites/hosting..

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

--

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


More information about the wp-trac mailing list