WordPress Community Forum

WordPress Support => Fixing WordPress => Topic started by: Chris on Feb 28, 2022, 01:47 AM

Title: WordPress high usage by wp-cron.php
Post by: Chris on Feb 28, 2022, 01:47 AM
Hi,

I have received a notification for one of my websites hosted on shared hosting that wp-cron.php is consuming high resources on the server. I have also noticed that wp-cron.php process is running each time I access any pages on the website.

How can I disable wp-cron.php and why it is being called on each page access?

Thanks!
Title: Re: WordPress high usage by wp-cron.php
Post by: Kailash on Feb 28, 2022, 01:48 AM
Hello,

This is WordPress virtual cron and this is useful to automate certain task. If you are not using any scheduled tasks, you can disable this using wp-config.php file and manually set a cron to execute at regular interval.

For step-by-step instruction, you can refer our following KB:

Disable/Enable WordPress Cron  (https://www.wppremium.co.in/disable-enable-wordpress-cron/)

- Kailash