定制 littlewonders/wordpress-ratelimit-image-upload 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

littlewonders/wordpress-ratelimit-image-upload

最新稳定版本:1.1.1

Composer 安装命令:

composer require littlewonders/wordpress-ratelimit-image-upload

包简介

Ratelimit uploads to Gutenberg galleries

README 文档

README

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 Images100 images
Image size each1mb
Internet connection speed1mb/s

The request characteristics look like this:

GutenbergWith Plugin (Concurrency = 5)
Total time100 seconds100 seconds
Average time per request100 seconds5 seconds
Average per-request upload speed10kbps200kbps
Max open requests at any one time1005

As you can see, the plugin doesn't improve the total time needed to perform the upload (that would be impossible) but rather speeds up individual uploads by running less at once.

As a side-benefit, this also reduces server load by keeping less connections open simeultaneously.

How do I install this?

See readme.txt

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-01-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固