How to Replace the Wordpress Cron Job in Plesk


Replacing the WordPress Cron is one of the easiest things you can do to speed up your website, especially for new visitors. The Wordpress Cron has processes to run at regular intervals (Hourly, Daily, Monthly). However, by default the checks for these jobs are triggered by visits to your website.
This means that when someone visits your site not only does your Wordpress website have to generate the page, it also has to complete any tasks it has missed. This can result in slow load times for that customer.
This process can be improved by creating automated cron jobs to occasionally trigger these automated checks.


Step 1 - Log into Plesk and click on File Manager.

7f580b4cbf3ce1bec987f2f76bffd00414a3acf5?t=40c0eabdbc411159a88c3b3965073a5e


Step 2 - Navigate to your document root (usually the public_html folder) and click on your wp-config.php file. Click Edit in Code Editor.

e8aac527af2c7be7429b63dde1ec626150e65c92?t=bafa58144e67f6d014c25057bee0934a


Step 3 - Under the line which starts with "define('WP_DEBUG", type this:

define('DISABLE_WP_CRON', true);

wpcron05.png



Make sure you click Apply on the bottom, then close the page.

03df7dbe5bbc841c3dd2191f3a3c7450d0e6038e?t=467d6f57bfe7f69130f2a6d2703749e0


Step 4 - From the Websites and Domains page, click on the Scheduled Tasks icon.

2cfe5026a86e39d24e57447569be868fe73be1d1?t=3f113f258dc5fb57cb5fc93b92a1c4f5


Step 5 - Add a New Cron Job.

Task Type: Fetch a URL
Command: Type the below (make sure to replace yourdomain.net.au with your domain name):
https://yourdomain.net.au/wp-cron.php?doing_wp_cron
Run: Cron Style, 1-56/5 * * * *
Description: Wordpress Cron
Notify: Do not notify

Once that's done, click OK.

78eca89138e7074c5f44505e0ebbb3d273994498?t=b59c59fbca475f6cadc1be9cff1f4275


For more tutorials on website development and Wordpress troubleshooting, view our List of Wordpress Guides.


Did you find this article useful?