What are Wordpress Cron Jobs?
Put simply, Wordpress Cron Jobs are scheduled events that process behind the scenes that help Wordpress look for updates, check plugins, publish scheduled posts, etc. Do you need them to run your site? Yes, I would say so but this is where the "everything in moderation" saying really rings home. You can utilize these scheduled events via your hosting service in much more controlled and modest way.
Why are the built in Wordpress Cron Jobs a bad thing?
Put simply, they suck the life from your website. For example, you may have decided to install a backup plugin to automatically back up your website and data, let's say you set this plugin to run once a day to backup your entire website. More often than not, this setting alone would likely reduce your website speed performance to a crawl during the 20 to 30 minute period while the website is backing up. Over time, plugins, applied settings, and functionality added to your Wordpress website begin to stack up and you have Cron processes running for the majority of the day leaving your website performance to suffer.
How to fix it?
Simple, what we want to do here is disable the auto Cron Jobs and then apply a setting via your website hosting service to allow the Wordpress Cron Jobs to run once per day, preferably in the middle of the night.
Step 1 - Disabling Wordpress Cron Jobs -
Open your wp-config.php file and add the below code to your file:
Step 2 - Add a Manual Cron Job Via Website Hosting
If your website hosting service is powered by cPanel, simply login and browse to the Cron jobs area, then follow the prompts setting the specific frequency and time you want your Cron Jobs to run. Then add the command below:
cd /home/INSERTUSERNAME/public_html; php -q wp-cron.php
Where you see INSERTUSERNAME you will want to use the username that was utilized to login to your cPanel.
Need some help with this, contact us and we can point you in the right direction.