How WP-Cron.PHP Can Slow Your Website Down

How WP-Cron.PHP Can Slow Your Website Down

How To Disable WP Cron And Why

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 people cannot afford to pay for the own 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 wp cron file.

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

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

6. Scroll down to the bottom to advance and click on crons job. What we want to do is schedule crons 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.

 

6 Comments

  • 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

    • Pat Johnson Posted November 9, 2019 5:19 pm

      My pleasure!

  • 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

Your email address will not be published. Required fields are marked *

Omar-V-Google-Review.png

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.

Territa-Reynolds-Smazzit-Customer-e1560586017260.jpg

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.

Alex-Ahmed-Ragab-Smazzit-customer.png

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