Skip to content

Lots of calls to menu item REST API after saving menu.  #34999

@spacedmonkey

Description

@spacedmonkey

Description

Follow up ticket from #34541 and this comment.

When after saving a menu with lots of menu items ( say 500 ), the navigation editor, makes a REST API request, for every single menu item updated. This results in over 500 REST API calls. Sadly, this may take down site with a hardware firewall or limited memory.

Step-by-step reproduction instructions

  1. Create menu with new navigation screen
  2. Create many menu items.
  3. Save menu.

See screen recording.

Screenshots, screen recording, code snippet

Screen.Recording.2021-09-21.at.11.30.38.mov

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions