Want your WordPress site to load faster? One effective solution is disabling the built-in WP-Cron system.
This tool is great for running tasks automatically, but it can slow down page loads if you use it on a large website.
What is WP-Cron?
WP-Cron is the tool WordPress uses to schedule and run various tasks at regular intervals. Examples include:
- Automatically publishing posts
- Checking for updates
- Sending newsletters
Although WP-Cron is useful, it can be heavy on system resources, which may slow down your site’s loading times.
Why disable WP-Cron?
- Faster loading: WP-Cron runs in the background and can put a strain on the server, especially if you have a lot of scheduled tasks.
- Better performance: Disabling WP-Cron frees up more system resources for higher-priority processes, which boosts your site’s performance.
How to disable WP-Cron
- Access the wp-config.php file: Use an FTP client to connect to your web hosting account and locate the wp-config.php file.
- Add the code: Open the file in a text editor and add the following line of code:
define('DISABLE_WP_CRON', true); - Save the changes: Once you’ve added the code, save the changes to the wp-config.php file.
Scheduling tasks with the server’s Cron ⏱
Even with WP-Cron disabled, your tasks still need to run. To handle that, we’ll use the Cron tool on the server.
- Log in to your hosting admin panel, select Services from the menu, and then choose Cron.
- Choose the schedule: Set the cron job to run every 30 minutes (or at any other interval you need).
- Enter the script address: In the Script address field, type:
https://www.mydomain.com/wp-cron.php?doing_wp_cron - Description: In the Description field, enter a name for this cron job, such as wpcron.
- Save your changes: Click Save.
After saving, you’ll see a list of all your cron jobs, including the one that runs your scheduled WP-Cron tasks.
Conclusion
Disabling WP-Cron and switching to server-side Cron can significantly improve your site’s performance and help it load faster.
If you have a lot of scheduled tasks or your site is becoming more resource-intensive, this step may be exactly what you need to keep it performing at its best.

