WordPress Cron File (wp-cron.php) site slow down fix
Posted by Support on 31 March 2014 08:14 AM
WordPress uses a file called "wp-cron.php". It is a virtual cron job (a scheduled task on the server), and is used by WordPress to in order to automate commands that need to happen certain times of the day, week, etc. These tasks may be checking for WordPress updates, sending email notifications, etc.
WordPress is setup so that the wp-cron.php file runs every time someone (a real person) or something (a search engine bot) visits your WordPress website. This cron job can take a minute or so to run, depending, on the size of the website. If your website doesn’t have a lot of visitors, it may not be an issue. If there are several visitors at once (or, if a search engine bot comes to index your site for search rankings), the resource usage on the server can increase exponentially in a very short amount of time.
What can be done to maximize the efficiency of the WordPress cron jobs? You can tell the WordPress installation that you're going to handle the execution of the wp-cron.php file. Here’s how:
DISABLE THE DEFAULT WP-CRON.PHP USAGE
1) Download the wp-config.php file via your FTP program to your computer.
4) Save the file and upload it to your web site using your FTP program.
CREATE A MANUAL CRON JOB
In this example, we’re setting it up to run one time every six hours.
1) Login to our control panel, manage your service and in the service controls area, click the Cron Jobs link.
(Replace "yourdomain.com" with your actual domain name.)
6) Click the "Add New Cron Job" button.
This will help your WordPress site/blog to run faster, as well as help the server its hosted on be more efficient.