Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeBottle authored Nov 1, 2021
1 parent f0eea6e commit ff880fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,17 @@ AutoCache会在你的文件目录被大量访问时**自动缓存目录**,配
```php
'queue'=>array(
'start'=>true,/*防并发请求队列*/
'maxnum'=>15,/*队列中允许停留的最多请求数,其他请求直接返回服务繁忙*/
'lastfor'=>2700 /*In seconds*/
'max_num'=>15,/*队列中允许停留的最多请求数,其他请求直接返回服务繁忙*/
'last_for'=>2700 /*In seconds*/
),
'servicebusy'=>'https://cdn.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',
'service_busy'=>'https://cdn.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',
```

TheQueue会在游客对文件造成大量请求时防止并发情况出现,可以有效防止账户被微软限制.

* maxnum 是队列中存在的最多请求数,每请求一个未缓存页面、一个文件,在请求未完成之时全部当排队请求,而当**排队请求的量**超过了maxnum,会直接返回服务繁忙,也就是servicebusy的图片.
* max_num 是队列中存在的最多请求数,每请求一个未缓存页面、一个文件,在请求未完成之时全部当排队请求,而当**排队请求的量**超过了max_num,会直接返回服务繁忙,也就是service_busy的图片.

* lastfor 是队列模式开启后持续的时间,按秒计算.超过这个时间后一切会恢复正常.**建议比AutoCache的设置更长一点**.
* last_for 是队列模式开启后持续的时间,按秒计算.超过这个时间后一切会恢复正常.**建议比AutoCache的设置更长一点**.

## Notice

Expand Down

0 comments on commit ff880fc

Please sign in to comment.