mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'ticket/jellydoughnut/9559' into develop-olympus
* ticket/jellydoughnut/9559: [ticket/9559] Do not override queue package size in the case of an overflow
This commit is contained in:
commit
c8bb9a2d37
1 changed files with 7 additions and 0 deletions
|
@ -671,11 +671,18 @@ class queue
|
||||||
$package_size = $data_ary['package_size'];
|
$package_size = $data_ary['package_size'];
|
||||||
$num_items = (!$package_size || sizeof($data_ary['data']) < $package_size) ? sizeof($data_ary['data']) : $package_size;
|
$num_items = (!$package_size || sizeof($data_ary['data']) < $package_size) ? sizeof($data_ary['data']) : $package_size;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This code is commented out because it causes problems on some web hosts.
|
||||||
|
* The core problem is rather restrictive email sending limits.
|
||||||
|
* This code is nly useful if you have no such restrictions from the
|
||||||
|
* web host and the package size setting is wrong.
|
||||||
|
|
||||||
// If the amount of emails to be sent is way more than package_size than we need to increase it to prevent backlogs...
|
// If the amount of emails to be sent is way more than package_size than we need to increase it to prevent backlogs...
|
||||||
if (sizeof($data_ary['data']) > $package_size * 2.5)
|
if (sizeof($data_ary['data']) > $package_size * 2.5)
|
||||||
{
|
{
|
||||||
$num_items = sizeof($data_ary['data']);
|
$num_items = sizeof($data_ary['data']);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
switch ($object)
|
switch ($object)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue