[LW] Ratelimit Image Upload GitLab
Reduce maximum concurrent image uploads in Wordpress Gutenberg editor
by Jay Williams <@admin@jaywilliams.me> · gitlab.com/littlewonders/plugins/wordpress-ratelimit-image-upload
★ 0stars
39composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://gitlab.com/littlewonders/plugins/wordpress-ratelimit-image-upload/-/archive/master/wordpress-ratelimit-image-upload-master.zipAlso on Packagist as littlewonders/wordpress-ratelimit-image-upload:
composer require littlewonders/wordpress-ratelimit-image-uploadFrom the readme
Wordpress Gallery Slow Upload
What's this for?
This is a wordpress plugin created to solve a very specific issue with the Gutenberg editor.
If the Wordpress administration interface is behind a reverse proxy such as Cloudflare or AWS Cloudfront, oftentimes there is a request execution time limit that cannot be changed. Usually this is 60 seconds.
When an editor uploads a large amount of large images to a Gutenberg gallery block (common in photography sites), combined with a slow connection this could mean that individual requests go over 60 seconds. For example, 10 requests may be running concurrently each uploading at 100kbps, causing them to take 60 seconds to upload.
With this plugin, image uploads from the Gutenberg editor are queued to run with a maximum concurrency limit. For example, for the following image upload:
| | |
|---------------------------|------------|
| Number of Images | 100 images |
| Image size each | 1mb |
| Internet connection speed | 1mb/s |
The request characteristics look like this:
| | Gutenberg | With Plugin (Concurrency = 5) |
|--------------