block editor – Intermittent Gutenberg 504 Gateway Timeout when calling REST route to retrieve categories
Our WordPress site uses the Gutenberg editor for editing posts, and occasionally many of our users experience 504 Gateway Timeout errors when the editor is loading in their browser. Specially, it is when it is trying to retrieve the categories, with a URL like this:
We’ve found that sometimes if we close the accordion for things like Yoast, Categories, etc. that it will load, but when many are open sometimes it won’t load.
If the user clears the browser cache, the issue seems to go away for a little while.
We’ve tried turning off Object Caching on our server, disabling plugins, etc. but so far have not had any luck. Please let me know if you have any ideas on what might be causing this intermittent behavior.