Replace the Wordpress Cron Job in cPanel

To make it easier to get in touch with us, from the 24th of March 2016 all support tickets will need to be submitted from your Crucial Control Panel.

 

Speed Up Wordpress Initial Page Load (Control the Cron)

One of the most common issues with small business WordPress websites is the amount of time the website takes to load after it has not been used for a while. Although there are many variables that can impact this, but the most common cause is the WordPress Cron Job.

What is the Wordpress Cron Job?

Think of the WordPress Cron Job like the Personal Assistant for your WordPress Website. The Personal Assistant (Cron Job) has jobs to do at regular intervals eg. Hourly, Daily, Monthly etc. But the only way that the Personal Assistant (Cron Job) is able to start her work, is by someone visiting your website and waking her up.

This means that not only does your Wordpress website have to show the customer the page, it also has to complete any tasks it has missed. This equals slow load time for that customer.

Well, how do I fix it?

For this example, my website is hosted with Digital Pacific using cPanel.

  1. Log into cPanel -> http://www.yourdomain.net.au/cpanel
  2. Click on File Manager
  3. If prompted, click on Web Root and then Go

  4. Click on the “wp-config.php” file and then Edit.
  5. Then click “Edit”
  6. On the line just before “/* That's all, stop editing! Happy blogging. */”  type in the following line of code:

    define('DISABLE_WP_CRON', true);



  7. Then click Save Changes.
  8. And then Close
  9. You can now close the file manager and return to cPanel.

  10. Once back in cPanel, click on “Cron jobs” underneath the “Advanced” section.
  11. Copy the settings from the screenshot below and enter the following command, replacing yourdomain.net.au with your actual domain name.

    wget -q -O - http://yourdomain.net.au/wp-cron.php?doing_wp_cron >/dev/null 2>&1



  12. Then click “Add New Cron Job”

Congratulations

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk