Knowledgebase

Setting Up WordPress Cron Correctly Print

  • cronjobsscheduledtasks, cron, wordpress, php, cpanel, wpcron, support, guide
  • 0

The two steps.

STEP ONE: DISABLE THE HTTP METHOD

Edit wp-config.php and add a line disabling WP cron, above the line that says to stop editing.

Copy the file before editing it.

STEP TWO: ADD A REAL CRON JOB

cPanel, Cron Jobs.

Set a schedule of every fifteen minutes for most sites. Every five for a busy shop.

The command runs WordPress's cron script directly, using the PHP binary and the path to your wp-cron.php file.

WHAT PATH TO USE

Your account's home directory, then the site's directory, then wp-cron.php.

cPanel shows your home directory path.

WHAT SCHEDULE

Every fifteen minutes suits most sites.

More frequently for shops processing orders.

Less frequently is fine for a site with nothing time-sensitive.

AFTER SETTING IT UP

Wait for the interval, then check that scheduled tasks have run.

A scheduled post is the simplest test.

IF YOU ARE UNSURE

Open a ticket. We will set it up for you.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot