wp-cron.php file is a virtual cron job (or scheduled task) WordPress uses to automate certain operations,
for example, checking for plugins or themes updates, sending email notifications, and so on.
By default, WordPress runs the
wp-cron.php task every time someone visits your website.
If you want WordPress operations to be performed regularly and on schedule,
you need to disable the default
If your website has high traffic, scheduled
wp-cron.php execution may also improve the website load time.
wp-cron.php on a particular WordPress installation:
Go to WordPress and choose the WordPress installation for which you want to disable the default
Turn on “Disable wp-cron.php” on the installation card.
wp-cron.phpexecution is now disabled.
Instead, WP Toolkit has automatically created a scheduled task, which will now run
wp-cron.phpevery 30 minutes.
(Optional) You may want to run
wp-cron.phpon a different schedule.
To do so, click the icon. This will open a new Plesk tab with scheduled tasks.
Change the default 30-minute interval, and then save changes.
You can also disable
wp-cron.php on all new WordPress installations.
To do so, go to WordPress, click “Settings”, and then select the “Disable wp-cron.php on all new WordPress installations” checkbox.
You may have already disabled
wp-cron.php without WP Toolkit by using the following ways:
- Editing the
wp-config.phpfile. In this case, WP Toolkit will detect this change and adjust the “Disable wp-cron.php” toggle.
- Creating a scheduled task. In this case, WP Toolkit will create another one once you disable
wp-cron.phpin the WP Toolkit interface.
You can either keep two tasks (it will not much affect the performance) or delete your task and keep the task created by WP Toolkit.