How To Speed Up A Sluggish WordPress Blog? Generally, your WordPress blog will go along fine without a problem – but once in a while, you’ll find it very sluggish. Why? And what can you do about it?
Speed Up A Sluggish WordPress Blog
WordPress can be very resource-intensive (a fancy way of saying it’s VERY needy!). For example, WordPress uses MySQL for the database – and this can result in a dozen or more database accesses for each page. And while MySQL is very well written, it still adds up. As well, some plugins can be poorly written or put me through a workout.
For example, I once did troubleshooting on a site where they were running a stats plugin for WordPress – so EVERY TIME a page was viewed, it logged into the database again to read AND update information. The slowdown was because while reads are fast, writes to the database (any database) are much slower – and that much data was choking an already-slow system. And the client was wondering what his site was hanging!
Where you reside can also cause issues: shared hosting can result in a blog being on a web server with dozens (even hundreds) of other blogs – all competing for attention from the server, the PHP interpreter, and MySQL. The result is your neighbors can be slowing you down! So what can you do?
Time it. On the default WordPress theme, you can view the source of any page, and see how long it took to display (use your browser’s View Source option and then look for the time near the end).
It will also show how many databases accesses you had. Typically, 1/10 of a second is reasonable for WordPress; 1 second (or more) is a problem; it means that you can’t handle more than a single visitor each second…. Disable plugins. First, time with all plugins running, then turn them off one by one. If you get a big jump in speed, then that plugin is causing the problem. For example, instead of a WordPress stats plugin, use the built-in logs that come with all hosting accounts – not as easy, perhaps, but you’ll speed up your site. Cache.
Wp-cache is a plugin that stores page requests and gives back the snapshot instead of calling the database again and again. For a place that has several applications every second, this can provide a massive boon in speed. Consider another hosting. Shared hosting is, well, shared. Although the time and effort of managing a server can add up, you control the system, which makes it easier to figure out what the problem is. Or check into virtual hosting, which is a bit better than shared (although you still share a computer).
At the very least, consider having several hosting accounts with different hosts, and see which ones are consistently a problem. Plans I CAN recommend: Lunarpages (where this blog is hosted); Godaddy (great deal on virtual servers); and Hostgator (high shared and reseller plans) There are many more tricks, but this will give you a starting point. Once you get the hang of the timing, you need to figure out where the problems are, and what you wish to do to fix it. Target the most significant issues first, and you’ll likely see big changes with less effort.