and when I say sometimes I really mean it. It’s so random. I have people test on their own computer and it loads less than 3 sec but at times it takes much longer to load.
The things that I have tried so far
Compress my images.
resize images
minify javascript and css files
use total cache plugin
use CDN server
We had several sites on different Deluxe hosts and found the overall performance of 1 CPU, 512 MB RAM and database was not enough. We’ve since found significantly faster hosting with 2GB+ RAM and SSD’s and some, a fraction of GoDaddy’s price. Unfortunately, finding better hosting on a budget involved testing others for a month before committing to change.
Since you’re talking about “sometimes”, I’d try setting a real cron job. Perhaps it helps, but it won’t end the issue totally, as there will be always a time when lots of visitors coincide with a cron job being performed.
WordPress needs cron jobs to run many tasks, such as regularly flushing and rebuilding cache. There are many plugins that create their own cron jobs. As default, WP will run all pending cronjobs every time there’s a hit on your website. If you set a real cron job, it will run on intervals you specify.
For more info on how to properly set a cron job, please check with your hosting, or google “wordpress real cron jobs”, there will be plenty of blog posts about it. Sounds a little too technical, but it’s actually quite easy to do if you follow the proper instructions.
So there is your problem. You are on a shared hosting environment and your website is reliant on share resources. I would recommend updating to GoDaddy’s Business Hosting or a VPS if you plan on sticking with GoDaddy.
No. It all makes a difference. 512MB Ram is really low and from the different GD hosts we tested, they all suffered from the same issues as you’re seeing.
@arash281pro, out of curiosity, what is the nearest major city? perhaps someone can recommend a better option. If your host is fast without Cloudflare, it’s sure to run even better with.