Setting up job scheduling

Fullworks Security uses a scalable job scheduling sub system (ActionScheduler) for running background code scan. This same system is used in WooCommerce so is throughly battle tested.

This system does ultimately rely on WordPresss’ WP-Cron.

For sites with either low volumes of visitors or high volume of visitors, it is beneficial to disable the default WP-Cron behaviour and replace with a manual cron process.

Please be aware, that some ‘how to’ guides suggest manual cron as low as twice a day. That is unnecessarily low frequency and will not help your system. We recommend a manual cron frequency of once per minute, some shared hosts won’t allow that frequency in which case use the most frequent time allowed ( e.g. twice an hour ) or you can use one of the many remote online cron services which will allow you once a minute jobs.

How to set up manual cron

Step 1

Add a cron job through your control panel. Each control panel is different so it is impossible to give exact instructions for all control panels.

# Call wp-cron once a minute
* * * * * wget -q -O – http://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Step 2

Disable WP-Cron within your wp-config file.

/** Disable built-in cron in favor of system crontab */
define('DISABLE_WP_CRON', true);

Was this helpful?