Improving WordPress Initial Page Load Time
Speed up your WordPress Website

Improving WordPress Initial Page Load Time

Have you ever noticed that your low-traffic WordPress site is actually fast, but sometimes it loads incredibly slow, and you never know why?

Maybe you blame your hosting provider for this and change it, or you delete some plugins, but it never resolves.

The problem is, somehow your website goes into Standby when it hasn't got any traffic for a while. Frankly, I don't exactly know "why" this happens, I mean it could be your hosting provider's energy-saving effort, or it could even root in your WordPress core... But I know a solution, although I don't know the causation! (yet, if you have any idea I'd be glad to read it in the comments!)

Cron Tasks

Create a Cron Task in Order to Stay Awake!

If your site goes into Standby because of the inactivity, the solution is keeping it active, and in order to do that the easiest way is creating a cron task.

The cron command code below creates a bot, which manipulates the site by visiting it every X minutes and keeps it active. You should set it to every day and every 15 minutes, but you also should consider your bandwidth while doing that if your hosting is not unlimited. (Hourly or every half hour could also work, but personally, I set some of mine to every 5 minutes, just to be sure!)

wget -q -O - https://www.yoursite.com/

If you've read this article, you probably know how to assign a cron task on your control panel, but if you don't, these articles below will help you to do that!

I hope I could be helpful! If you have any questions or remarks, let me know in the comments!

___________________________________________________________________

Warning: This solution is well suited for low-traffic websites like small businesses etc. If your site's traffic gets higher in time, like more than 100 views daily, you should delete your cron task, because it may slow down your website!





要查看或添加评论,请登录

社区洞察

其他会员也浏览了