Limit concurrent media uploads on Gutenberg
-
Hi,
When uploading a lots of pictures to a WordPress site using Gutenberg, the cpu and memory usage can spike quite a lot.
That’s because it queues the HTTP requests all at once, sending them as fast as the client can upload them. That’s especially an issue on smaller hosts, as it can slow down the site to a crawl or cause oom errors.
For reference, this is something that doesn’t happen when using the Upload Media page as it uploads the images sequentially.I get that doing it way makes the uploads go faster if the server is able to handle that load, but would it be possible to limit the number of concurrent uploads so smaller hosts don’t get overwhelmed if a single users with a decent upload speed decides to drop a folder with a lot of pictures taken from their phone.
Not sure if that’s the right forum to post about this, please let me know if there’s a more appropriate channel or if you need more info.
You must be logged in to reply to this topic.