WP-Cron is a built-in feature in WordPress that handles time-based tasks and scheduled events. It simulates a system cron job by triggering scheduled tasks whenever a page is loaded. These tasks might include checking for updates, publishing scheduled posts, or sending automated emails. Unlike a cron job that runs at specific intervals regardless of site traffic, WP-Cron relies on site visitors to trigger these tasks.
How to Disable WP-Cron in WordPress
Disabling WP-Cron can be useful if you’re experiencing performance issues, especially on high-traffic sites, as it can reduce the load on your server. Here’s how you can disable it:
1. Access the wp-config.php File
- Use an FTP client or your hosting control panel’s file manager to access the wp-config.php file located in the root directory of your WordPress installation.
2. Add the Disable Command
- Open the wp-config.php file for editing.
- Add the following line of code before the line that says
define('DISABLE_WP_CRON', true);
3. Save Changes
- Save the wp-config.php file and close it.
4. Set Up a Real Cron Job (Optional):
- After disabling WP-Cron, setting up a real cron job through your server’s control panel (e.g., cPanel) is recommended to handle the scheduled tasks more efficiently.
You can set the cron job to run at specific intervals (e.g., every 15 minutes) by using a command like:
wget -q -O - https://yourdomain.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1
WP-Cron is an essential part of WordPress for handling scheduled tasks but can sometimes be a performance bottleneck, especially on busy sites. Disabling WP-Cron and replacing it with a real server cron job can improve site performance and ensure tasks are handled more reliably.
Interesting Reads:
Can Users Install Applications On WordPress

