[wp-hackers] Question on Nav speed
simon.vart at exigences.biz
Sat Apr 29 10:57:30 UTC 2017
Maybe use a transient to cache the menu items ?
2017-04-29 6:48 GMT+02:00 Luke Bryan <lukebryan at sharefaith.com>:
> Greetings all,
> I have noticed that in profiling Wordpress, wp_get_nav_menu_items() seems
> to be a slow function overall in any given page load. Looking through
> tickets, it seems others would agree...
> It *needs caching*:
> Saving menus apparently can be slow and we shouldn't "call
> wp_get_nav_menu_items() in wp_update_nav_menu_item() unless we need to.
> I was wondering if there is any recommendation for optimizing the navs or
> if there's anything in-the-works that would improve performance without,
> say, adding a site cache plugin?
> Best regards,
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers