Make Sure the WordPress Cron Works

It is important that the WordPress cron works so that tasks can run to perform important actions.

To check scheduled tasks and test if the WordPress cron is working, you can install a plugin such as WP Control.

Many of our users have problems due to the WordPress cron not working as intended. Here are the reasons why the WordPress cron may not be working:

 

1. Cron Disabled in wp-config.php

Open your wp-config.php file to check if there is a DISABLE_WP_CRON constant defined as true.

If there is and you have no other way that the WordPress cron is currently being executed, best is to remove this line defining the DISABLE_WP_CRON constant.

 

2. No Traffic/Visitors on Website

The WordPress cron relies on traffic/visitors on the website to keep track of time and execute scheduled tasks.

If you don’t have no or very little visitors on the website, best is to setup a cron job on your hosting or a 3rd party cron job server to ping the website automatically at a set interval. Alternatively, you can completely replace the WordPress cron with a real server cron job.

 

3. Blocked by Hosting Provider

Some hosting providers may not like the WordPress cron because it can put strain on the server.

Best is to talk to your hosting provider or server administrator if you tried everything and it still doesn’t work or alternatively you can get top quality WordPress hosting where these problems don’t exist.

 

4. DNS and Hosting Problem

Install the WP Crontrol plugin, link above, and navigate to Settings > Cron Schedules. Make sure that it doesn’t show any errors. It can be a domain alias issue, DNS misconfiguration, reverse proxy, firewall, or virtual host problem. Contact your hosting and show them the error. This is the error:

“There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:

cURL error 6: Could not resolve host: www.example.com

More information: https://github.com/johnbillion/wp-crontrol/wiki/Problems-with-spawning-a-call-to-the-WP-Cron-system

Website & Email Hosting

Get the best website & email hosting for speed, security, and peace of mind. No restrictions. Freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest