To improve front-end performance HostBill executes long-running tasks in the background queue. Those include, but not limit to:
When installing it's required to add crontab entry to run queue.php file every minute.
If you check Extras → System Logs → Task queue log in your HostBill, and find that there is a lot of tasks in Pending state, it means that queue is not performing well, which is caused by too-few queue workers available. To fix:
If option above is not possible to do, duplicate cron entry for queue.php multiple times (ie 5x):
* * * * * php -q /path/to/hb/queue.php -r * * * * * php -q /path/to/hb/queue.php -r * * * * * php -q /path/to/hb/queue.php -r * * * * * php -q /path/to/hb/queue.php -r * * * * * php -q /path/to/hb/queue.php -r |
Run queue.php with -h argument to get list of queue options:
php -q /path/to/hb/queue.php -h |
To queue.php entry add argument with increased number of workers on queue you wish to speed up, like:
* * * * * php -q /path/to/hb/queue.php --hb_mail_queue=6 |
When using Office365 as email provider number of mail workers cannot be be set to more than 3, as your emails may be rejected with error: 4.3.2 STOREDRV |