WordPress Cron (wp-cron.php) is the built-in task scheduler in WordPress, used to run scheduled tasks. Many plugins depend on WP Cron for their backend functions.
By default, WP Cron is triggered by website visits. Every time a visitor loads your site, there's a small chance WP Cron will run and execute scheduled tasks. This approach has some downsides:
To set up cronjobs for WP Cron, follow these instructions:
Open your wp-config.php file with a file manager (e.g. cPanel file manager)
Go to the bottom of the database settings in wp-config.php, usually around line #37.
Add the code below:
define('DISABLE_WP_CRON', true);
then save the file.
FastCron has an official free plugin here.
You just need to install and activate it, FastCron will create a free cronjob running every 5 minutes to run wp-cron.php file for you.
It's the best for personal blogs. If you manage several WordPress websites for your clients, please set up separate cronjobs at FastCron:
https://example.com/wp-cron.php?doing_wp_cron=1&__timestamp__
(replace https://example.com/ with your actual WordPress homepage URL)
And you're done!
If you have some plugins that need to update frequently, just change the time interval to Every minute.
You may notice that I added &__timestamp__ to the cronjob URL.
It'll add a number (Unix timestamp) to your cronjob URL every time your cronjob is executed,
preventing your web server from caching the HTTP request.
Some WordPress plugins rely on WP Cron to run their scheduled tasks. If you're using one of these, set up a cronjob to run your website WP cron.
Need help? Reach out to support@fastcron.com - we're happy to help.
See why 8,000+ website developers and their teams use FastCron to run their cronjobs 12 million times a day.
The reliable online cronjob service for your websites since 2009.