Blog
WordPress Backups by Setting DISABLE_WP_CRON
How to Properly Schedule WordPress Backups by Setting DISABLE_WP_CRON
Ensuring your WordPress site is regularly backed up is essential for site security and peace of mind. One important but often overlooked setting that affects scheduled tasks (like backups) is the DISABLE_WP_CRON
constant. In this guide, we’ll explain what it is, why it matters, and how to configure it correctly for reliable, automated backups.
What is WP-Cron?
WordPress uses a built-in system called WP-Cron to handle scheduled tasks like:
Backing up your site
Publishing scheduled posts
Checking for updates
This system is triggered only when someone visits your site, which can be unreliable on low-traffic websites.
What is DISABLE_WP_CRON
?
The DISABLE_WP_CRON
constant, when set to true
, disables WordPress’s built-in cron system. This is commonly done when you use an external cron job (like from your hosting control panel) for better reliability.
Should You Disable WP-Cron?
You have two options:
Option 1: Use WordPress Internal Cron (Simple)
Set
DISABLE_WP_CRON
tofalse
Let WordPress handle everything
Best for: New users, simple sites
Option 2: Use Server Cron (Advanced)
Set
DISABLE_WP_CRON
totrue
Set up a real cron job (e.g., via cPanel or your server)
Best for: High-traffic or performance-focused sites
How to Change the DISABLE_WP_CRON Setting
Open
wp-config.php
(found in your WordPress root directory)Find this line:
Change it to:
Save the file and you’re done!
Why This Matters for Backups
If WP-Cron is disabled and you haven’t configured a real cron job, your scheduled backups won’t run — which puts your website at risk. Always ensure your cron system is active and reliable.
Whether you’re a beginner or a developer managing multiple sites, correctly setting DISABLE_WP_CRON
is critical to maintaining healthy, automated backups in WordPress. Choose the right method for your needs and test your backup system regularly.