Skip to main content
Disable WP Cron
Updated over 3 weeks ago

You can disable WP-Cron and set your own Cron jobs to run at the times you prefer. Once you disable WP-Cron on the MainWP Settings page of your Dashboard (Dashboard -> Settings > Advanced Settings: Use WP Cron), MainWP will remove all of its schedules.

Once disabled, you can then add the following files to the crontab. Directly under each file, the commands to add to the crontab are added: The reason the β€œPHP” call is preferred is that this eliminates the HTTP issues (timeouts of the webserver, etc..)

To find out how to set up a Cron for your hosting provider, contact their support or help documentation.

Commands to Use in this Crontab

The preferred option, calling directly from the command line (beware, the path to PHP may vary depending on your host)

/usr/bin/php /path/to/public_html/wp-content/plugins/mainwp/cron/**FILE** > /dev/null 2>&1

Alternative Option, Calling the Site

wget -O /dev/null  http://example.com/wp-content/plugins/mainwp/cron/**FILE** > /dev/null 2>&1

Core

Check for available updates

Frequency: every minute (crontab schedule: * * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp/cron/updatescheck.php > /dev/null 2>&1

This cron job will perform two actions. First, it will first synchronize the Dashboard and then perform auto-updates if any exist.

Ping Child Sites

Frequency: every day (crontab schedule: 0 0 * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp/cron/pingchilds.php > /dev/null 2>&1

Check Sites Status

Frequency: every minute (crontab schedule: * * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp/cron/checkstatuschilds.php > /dev/null 2>&1

This cron also controls the Uptime Monitoring feature added in v5.3.

Check Sites Health

Frequency: every hour (crontab schedule: 0 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp/cron/sitehealthmonitoring.php > /dev/null 2>&1

Reconnect Sites

Frequency: every hour (crontab schedule: 0 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp/cron/stats.php > /dev/null 2>&1

Domain Monitor

Check Domains

Frequency: every day (crontab schedule: 0 0 * * *)

Frequency: every week, on Sunday 00:00 (crontab schedule: 0 0 * * 0)

Frequency: twice a month (crontab schedule: 0 0 1,15 * * *)

Frequency: every month (crontab schedule: 0 0 1 * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-domain-monitor-extension/cron/domain_monitor_cron_start.php > /dev/null 2>&1

Send Notifications

Frequency: every day (crontab schedule: 0 0 * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-domain-monitor-extension/cron/domain_monitor_cron_alert.php > /dev/null 2>&1

Lighthouse

Audit Sites

Frequency: every day (crontab schedule: 0 0 * * *)

Frequency: every week, on Sunday 00:00 (crontab schedule: 0 0 * * 0)

Frequency: twice a month (crontab schedule: 0 0 1,15 * * *)

Frequency: every month (crontab schedule: 0 0 1 * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-lighthouse-extension/cron/lighthouse_cron_start.php > /dev/null 2>&1

Audit Sites – Continue

Frequency: every 5 minutes (crontab schedule: */5 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-lighthouse-extension/cron/lighthouse_cron_sync.php > /dev/null 2>&1

Send Notifications

Frequency: every day (crontab schedule: 0 0 * * *)

Frequency: every week, on Sunday 00:00 (crontab schedule: 0 0 * * 0)

Frequency: twice a month (crontab schedule: 0 0 1,15 * * *)

Frequency: every month (crontab schedule: 0 0 1 * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-lighthouse-extension/cron/lighthouse_cron.php > /dev/null 2>&1

Maintenance

Start Maintenance

Frequency: every hour (crontab schedule: 0 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-maintenance-extension/cron/cron_job_start.php > /dev/null 2>&1

Continue Maintenance

Frequency: every minute (crontab schedule: * * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-maintenance-extension/cron/cron_job_continue.php > /dev/null 2>&1

Post Dripper

Drip Articles

Frequency: every hour (crontab schedule: 0 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-post-dripper-extension/cron/post_dripper.php > /dev/null 2>&1

Pro Reports

Send Report Notifications

Frequency: every hour (crontab schedule: 0 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-pro-reports-extension/cron/notice_reports.php > /dev/null 2>&1

Send Reports

Frequency: every 5 minutes (crontab schedule: */5 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-pro-reports-extension/cron/send_reports.php > /dev/null 2>&1

Send Reports – Continue

Frequency: every minute (crontab schedule: * * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-pro-reports-extension/cron/continue_reports.php > /dev/null 2>&1

Sucuri

Send Notifications

Frequency: every day (crontab schedule: 0 0 * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-sucuri-extension/cron/securityscan_notification.php > /dev/null 2>&1

SSL Monitor

Start Monitor

Frequency: every day (crontab schedule: 0 0 * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-ssl-monitor-extension/cron/ssl_monitor_cron_start.php > /dev/null 2>&1

Continue Monitor

Frequency: every 5 minute (crontab schedule: */5 * * * *)

wget -O /dev/null http://yourdashboard.com/wp-content/plugins/mainwp-ssl-monitor-extension/cron/ssl_monitor_cron_continue_run.php > /dev/null 2>&1

Did this answer your question?