Skip to content

WP CRON scheduler

khungate edited this page Jul 25, 2023 · 4 revisions

Welcome to the guide on using the WP CRON Scheduler with the MailChimp for WooCommerce Integration. This guide will help you understand how to configure a cron job that simulates server traffic to activate the WP CRON scheduled events.

Overview

The Need for a CRON Job

Some sites with less traffic might need to configure a cron job that runs every minute. This simulates traffic on the server, activating the WP CRON scheduled events. This is particularly useful for triggering background jobs that the Action Scheduler needs to complete.

Configuring a CRON Job

Steps

You can configure a cron job by adding the following to your CPanel or CRONTAB, depending on what your host allows:

*/1 * * * * wget -q -O - https://site.com/wp-cron.php?doing_wp_cron

By doing this, the Action Scheduler will be able to trigger these background jobs all day, regardless of your site traffic. This approach is recommended because the Action Scheduler needs to be triggered by normal site traffic in regular mode.

Using the CLI Version

More Performance

You may also consider using the CLI version, which is known to be much more performant. You can find instructions on how to do this here.