Last chance of March! Save 50% of your money in your pocket in March!

Cron Job

How to configure a Cron Job on WordPress

 

What is a Cron Job?

A Cron job is a task which is scheduled to run at a specific time automatically. For example, a Cron job can back up a file every six hours automatically.
Booknetic uses the standard WordPress Cron Jobs for sending reminder messages. The default WordPress Cron Jobs might cause delays for sending reminder messages. Because, by default, WordPress does not use a real Cron job. Instead, whenever a page is loaded on a WordPress site by any user, WordPress runs the Cron Job Tasks. If nobody visits your WordPress site, your tasks will not run. As a result, your messages will delay.

To resolve these issues, you should disable the default virtual WordPress Cron Job, and configure a real Cron job. To do this, follow the instruction below:

 

  1. Add the following line to the wp-config.php file:
    define('DISABLE_WP_CRON', true);
  2. Log in to Cpanel.
  3. Go to "Cron Jobs"
  4. Configure a real Cron Job on WordPress by copying your Cron task command from the Reminder section:

    Booknetic Cron Job

    And adding the command to the command section on your Cron job settings. If you want the messages to be sent at the exact time you defined, you need to set the Cron Job every 15 minutes.

    Booknetic Cron Job