Disabling wp-cron.php is going to free up a lot of that CPU/memory usage, but you still need to have it run so WordPress will have the ability to automate any tasks it needs to carry out.
To do this we just need to setup a cronjob inside of cPanel to execute the file:
- Login to cPanel and navigate to Cron Jobs
- Add a new cron job to run once an hour with the following command: wget https://www.yourwebsite.com/wp-cron.php > /dev/null 2>&1
- Make sure to replace yourwebsite.com with the correct URL to your wp-cron.php file.
- Click Add New Cron Job
You’re then all set! WP-Cron will only run once an hour and not when every time someone visits your website.
If you have any questions on this or would like our team to set it up for you, feel free to reach out!