Skip to main content

Cron jobs at Raidboxes

How to manage cron jobs at Raidboxes.

Jan Hornung avatar
Written by Jan Hornung
Updated over 3 years ago

With Raidboxes, we rely entirely on the WP cron jobs scheduled in the wp-cron.php file. In your Box settings you can:

  • Stop website visitors triggering wp-cron.php

  • Execute cron jobs on the server side

  • View and delete all your cron jobs

Cron jobs at RAIDBOXES


How to set up cron jobs

The WordPress Codex explains exactly how to create a cron job. Alternatively, you can use the service https://cron-job.org or the plugin WP Crontrol. It doesn't matter which method you use, setting up a cronjob means putting a new entry in the wp-cron.php file of your Box.

Stop cron jobs being triggered by website visitors

Usually, wp-cron.php is called whenever a user visits your site. As there are also actions that have to be executed independently of traffic, however, you can prevent wp-cron.php from being triggered this way. Simply follow these steps:

  • Go to the Settings tab in the Box overview

  • Select Cronjobs from the menu on the left

  • Click on Execute WP-Cron

  • Toggle the switch here to Off to prevent website visits from triggering cron jobs.

⚠️ Caution: If you switch off both Execute WP-Cron and the Server-side WP-Cron option below it, cron jobs will no longer be run on your site.

Run WP-Cron server-side

If you activate this option, wp-cron.php will no longer be called only by visitors, but also by the server itself. This way you make your cron jobs independent from visitors visiting your site.

You can set the interval at which the wp-cron.php should be called up in the option itself.

Crons jobs - Server-side WP-Cron

Manage cron jobs

In the Box cronjob overview, you can view all your Box's cronjobs and, if necessary, delete them directly. In addition to the hooks of the cronjobs, the following information is also displayed:

  • Frequency of the cronjob

  • Time until the next run

  • Timestamp of the next cronjob run.

Using the trash can function on the right, you can also delete the next run of the respective cron job.

Did this answer your question?