Skip to documentation
McDocs

Documentation

Run background jobs with cron

Set up a once-per-minute scheduler for tasks.php.

Cron is the normal way to keep scheduled publishing, retries, mail and other background work moving when nobody has Admin open.

Recommended cron entry

cron
* * * * * php /path/to/site/tasks.php >/dev/null 2>&1

Replace /path/to/site/ with the real installation path and use the PHP command supplied for the site.

Plesk or control panels

Create a scheduled task that runs once a minute. Choose “run a command” and use the same command without the timing fields when the panel provides the schedule separately.

Run it manually

To test the runner from a shell, run:

shell
php /path/to/site/tasks.php

Then open Background Jobs and check that due work has moved forward.

HTTP runner

Use the command-line runner where possible. If your hosting requires the supported HTTP method, follow the security guidance shown by Micro CMS and do not expose an unprotected task address.

Bridge note

Bridge Host work uses the Bridge worker guidance. Use this cron guide for normal Silo Background Jobs.

Continue reading