[wp-trac] [WordPress Trac] #32769: Customizer Menus: Setting sanitization innefficiencies resulting in severe performance slowdowns

WordPress Trac noreply at wordpress.org
Sun Jul 12 07:34:49 UTC 2015


#32769: Customizer Menus: Setting sanitization innefficiencies resulting in severe
performance slowdowns
--------------------------+--------------------------
 Reporter:  westonruter   |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  high          |   Milestone:  4.3
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  performance
--------------------------+--------------------------

Comment (by westonruter):

 It looks like the main reason for the inefficiencies is that
 `wp_setup_nav_menu_item()` is getting called multiple times, and with each
 call it makes several `get_post_meta()` calls, so the number of post meta
 calls quickly multiply. The first thing I'm working on is making this more
 efficient to only call `wp_setup_nav_menu_item()` and get the required
 postmeta once.

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


More information about the wp-trac mailing list