How WP Cron Can Slow Your Website Down

How WP Cron Can Slow Your Website Down

How To Optimize WP-Cron And Why You Should

In this tutorial, we’re going to walk through how to optimize your website for better performance, especially if you’re on a shared hosting plan. And a shared hosting plan just means that you’re sharing your website resources with other users on the same server.wp.cron optimization for websites

A lot of people cannot afford to pay for their server or a VPN so it’s just less expensive to just go ahead and purchase a shared hosting plan, especially if you have limited funds. But as your website grows, it starts to get bigger, get more traffic, you may want to go toward a VPN, but that’s just somewhere down the line. The way we optimize your website for better performance is by adding a piece of code in your WP config file.

To do this, you will need access to your Cpanel and as always make sure you backup your website. Okay so now we’re in the cPanel Dashboard.   

1. Scroll down and find file manager and right-click on it. Make sure the website you’re working on is selected and click show hidden files.

2. Next, look at your files and find wpconfig.php. Click on it once and click edit at the top. We are going to enter this piece of code in your WP config file. 

3. Ok so find the heading that says “Database Collate, Don’t change this” and paste that code right under that heading. What this does is disable the wp-cronWP-Cron file.

4. But you don’t want to leave it here. What you are going to do is schedule your cron job to run. A million cron jobs are run every second so we are going to prevent this.

5. Go back to your cPanel Admin area to schedule your cron jobs.

6. Scroll down to the bottom to advance and click on cross WP-Cronjob. What we want to do is schedule cron job to run every four to six hours vs every few seconds. And we’re going to select once per hour. Next set it to run every six hours.

7. Next ad this piece of code to tell cron to run this job. And click save.

Still not sure if social advertising is for you?  Get in touch, we will be happy to answer any questions you may have.



  • Chahinaz Posted November 9, 2019 4:57 pm

    Thank you so much for this trick, I was gaining traffic & my website was starting to become slow, &nd I started to worry about its performance so I will definitely try it

  • Isabel Posted November 9, 2019 5:24 pm

    Do you think a slow website can affect the SEO ?

    • Pat Johnson Posted November 9, 2019 7:42 pm

      It definitely does. Speed is one of the ranking factors.

  • Alex Wing Posted November 9, 2019 9:07 pm

    I am going to try this out this week. I have been noticing that my site is not running nearly as fast as it once did and I have been trying different things and they don’t seem to be making that big of a difference. Thanks for sharing a step by step guide on how to disable Cron. Makes it super easy for me so I don’t need to spend hours making sure I did it right.

    • Pat Johnson Posted November 10, 2019 2:18 pm

      My pleasure..

Add Comment


This was great training. It helped me since I’m just a humble garbage man that knows nothing about such things.Very thorough but not overwhelming. Highly recommend these professionals.


I just learned how to build my own WordPress website from scratch, which is crazy. For months I had been looking for someone to build a site for me, but I couldn’t afford it smh. And to learn all this on my own, I never dreamed I could do this. The way everything was broken down in this course made it so easy.


Very helpful sessions ! Patricia was great in teaching me about search engine optimization and how to let my website grow !

Phone: 9935-d Rea Road #455
Charlotte, NC 28277