13. Cron Jobs & Scheduled Tasks
The module ships no cron script of its own. It attaches two tasks to the standard WHMCS system cron, so no additional scheduling is required beyond the cron WHMCS already needs:
|
Task |
Runs |
What it does |
|---|---|---|
|
Usage Update |
With the WHMCS daily cron |
Reads each active service’s instance specifications and monthly transfer usage from Linode and writes disk limit, bandwidth usage and bandwidth limit onto the WHMCS service. |
|
Module Auto-Update |
With the WHMCS daily cron |
Checks the WHMPress update server for a newer module version and, when one is available, downloads and installs it — preserving license.php. |
The standard WHMCS cron command is:
php -q /path/to/whmcs/crons/cron.php
Note: Both tasks require an Active license. Neither runs while the license check is failing.