How To Instantly Increase Your WordPress Website Speed
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.