Hjälpcentral

How to stop wp-cron.php from overloading your WordPress site

The file wp-cron.php in WordPress is used to process pending posts and check for updates. The issue is for some reason WordPress thought it would be good to run it every time you get a visitor. If you have a less than 100 people a day it should be fine, but after 100 visitors or so the file becomes a load process super hog. Luckily disabling it is easy and in your cPanel you can add a cron to just update once a day.

Here is a step by step on disabling wp-cron.php, feel free to add a ticket and let us do it for you as well.

1. Log into your cPanel and click file manager.
2. Then click public_html if you are not already in the folder.
3. Right click the file wp-config.php and choose edit.
4. After the define('DISABLE_WP_CRON', true);
5. Save the file and go back to the home page of cPanel.

Halfway there!

6. Now click “Cron Job”.
7. On the cron job page add a * underneath were it says “Day:”
8. Now in the section that says “Command” you need to add this code:
cd /home/username/public_html; php -q wp-cron.php (Change username with your actual cPanel username).
9. Click save and enjoy your faster more reliable new WordPress!

  • wordpress, disable, load, remove, wp-cron, wp-cron.php, overload

Hjälpte svaret dig?

20 användare blev hjälpta av detta svar