[wp-trac] [WordPress Trac] #36891: Saving large menus is super slow
WordPress Trac
noreply at wordpress.org
Fri May 20 02:26:47 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 pento):
I'm inclined to bail early in `wp_update_nav_menu_item()` - that way, we
get to avoid all of the `update_post_meta()` calls, too.
Alternatively, it might be useful to check if each post meta item has
changed before updating it - that way, even menu items that have changed
update faster.
As `wp_update_post()` already retrieves the post before updating, we could
probably do a similar sanity check there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36891#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list