Disable WP Cron

Available with the following:
MainWP Core
Table of Contents

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

Still Have Questions?
Search for additional solutions in the MainWP Community or start your own discussion
MainWP Community

Table of Contents

Search MainWP.com

[searchwp_form id="1"]