Disable WP Cron

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 MainWP will remove all of it’s 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 because this eliminates the HTTP issues (timeouts of webserver etc..)

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

MainWP Dashboard Cron Jobs

Cron: every 15 minute: (crontab schedule: */15 * * * *)

Check for available updates

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

Continue backing up sites (process in batches of 5)

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

Cron: every hr: (crontab schedule: 0 * * * *)

Start backups of site/DB

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

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

Ping each child site to make sure it is still active and connected to your dashboard

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

MainWP Extensions Cron Jobs

Client Reports Extension

(/path/to/public_html/wp-content/plugins/mainwp-client-reports-extension/cron/archive_reports.php

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

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

(/path/to/public_html/wp-content/plugins/mainwp-client-reports-extension/cron/send_reports.php

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

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

(/path/to/public_html/wp-content/plugins/mainwp-client-reports-extension/cron/continue_reports.php

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

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

Maintenance Extension

(/path/to/public_html/wp-content/plugins/mainwp-maintenance-extension/cron/maintenance_cronjob.php

Cron: Run Hourly: (crontab schedule: 0 * * * *)

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

Page Speed Extension

(/path/to/public_html/wp-content/plugins/mainwp-page-speed-extension/cron/pagespeed_cron.php

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

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

(/path/to/public_html/wp-content/plugins/mainwp-page-speed-extension/cron/pagespeed_cron_sync.php

Cron: every day: (crontab schedule: 0 3,15 * * *)

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

Post Dripper Extension

(/path/to/public_html/wp-content/plugins/mainwp-post-dripper-extension/cron/post_dripper.php

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

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

Remote Backup Extension

(/path/to/public_html/wp-content/plugins/mainwp-remote-backup-extension/cron/remotedestinationcheck.php

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

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

Sucuri Extension

(/path/to/public_html/wp-content/plugins/mainwp-sucuri-extension/cron/securityscan_notification.php

Cron: 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

Commands to use in this crontab:

Prefered option, calling directly from the command line (beware, the path to php may vary depending 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