[wp-trac] [WordPress Trac] #36891: Saving large menus is super slow

WordPress Trac noreply at wordpress.org
Fri May 20 02:15:06 UTC 2016


#36891: Saving large menus is super slow
-------------------------+------------------------------------------
 Reporter:  pento        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Menus        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration, performance
-------------------------+------------------------------------------

Comment (by dd32):

 > if a menu item hasn't changed, it doesn't need to be updated.

 If you chase it down the rabbit hole, it'll probably come to
 `wp_insert_post()` which runs regardless of if things have changed.
 Bailing early in the menu's code if nothing has changed will help greatly,
 bailing in the post update handlers if nothing has changed would also help
 in general.

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


More information about the wp-trac mailing list