Performance Issue: Editing Post with Otter Blocks
-
I have been tracking down a performance issue on one of my websites, and narrowed it down to excessive concurrent REST API GET requests to
/wp-json/wp/v2/settings
when editing a post/page.It appears that a request is made to this REST API endpoint for every Otter Block in a post. As the REST API is not cached by default, this can put significant load on the database when editing any post/page with a reasonable amount of content.
This is present on a fresh WordPress site with only Otter Blocks installed. Create a new post/post, add a half dozen Otter Blocks patterns, and watch the Network tab of your browser dev tools while you do so.
Here’s a video showing the issue first hand:
This was run on WordPress 6.4.1 and PHP 7.4.33. The active theme is Twenty Twenty-Three 1.3, and only the Otter Blocks 2.5.1 plugin is enabled.
- The topic ‘Performance Issue: Editing Post with Otter Blocks’ is closed to new replies.