How can I figure out why my Wordpress pages load so slowly?

南楼画角 提交于 2019-12-01 10:46:29

I found this superb guide which really helped me fight through the mire of optimising Apache for use with WordPress:

http://thethemefoundry.com/blog/optimize-apache-wordpress/

You said you have a virtual server so chances are it's currently set up to load EVERY module - you'll find a great speed boost here if you eliminate unnecessary modules. Keep a backup of your config file in case you screw it up.

Also - use the TOP command through SSH to see how much memory PHP is using. Probably a lot currently. This will all be improved through eliminating modules as per above link. You don't mention how much memory you have on your VPS but there's a good chance your performance issues are coming from memory thrashing which will be mitigated significantly by reducing how much memory each PHP instance consumes using the link above.

Also, it matters to find out where your performance issues are actually coming from – a great little plugin called WP Tuner helps me locate performance bottlenecks. The original plugin is incompatible but someone else has written an upgrade:

http://www.wwvalue.com/tuts/tut-wp/wordpress-profiler-tuner-revised.html

That will help you identify which specific parts of the page are taking the longest to load so you will immediately find your performance bottleneck.

In addition, a cool plugin called Debug Queries is useful for tracking down performance issues although the wordpress profiler above actually does track queries too.

Finally – I can’t recommend highly enough this WordPress.org discussion on performance, and specifically on W3 Total Cache vs Super Cache (both are excellent).

It’s a fantastic read for anyone looking for split-second response times: http://wordpress.org/support/topic/wp-super-cache-vs-w3-total-cache

I use W3 total cache on one of my sites and WP Super Cache on another. Both are great. I used both so I could learn about both. I would say use WP Super cache plus all the other tools the guy at the link above recommends if you're looking for extreme performance, but if you're looking to get immediate performance W3 total cache is more comprehensive in its initial setup.

Hope that helps.

  • use caching plugin,
  • put JS files at the bottom,
  • try different webhost (DB server may be slow sometimes)
  • minify css and JS,
  • make fewer HTTP requests
  • make sure external services (like FB and others) are not slowing down (remove them and see if it helps)
  • run Yslow or similar test
  • try to use typekit or google font instead of cufon

Have you tried http://wordpress.org/extend/plugins/wp-super-cache/ or a similar caching plugin?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!