Live data from Hacker News

How I reduced Page Load Time by 75% - WordPress Optimization

kadavy.net

21–29 of 29 posts

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#21
post #17
post #15

Earlier quoted context omitted.

Nginx configuration is about as powerful as Apache, and personally easier for me to grok, but you have to be able to get past the lack of documentation. Here's the configuration file from my new project -- with the domain name removed. I've marked the magic bits that gets you Wordpress pretty URL compatibility. If you're actually asking about more complicated rewrites, those are all possible too -- look at the Nginx…

That's a much more attractive configuration file than an Apache one. I see that you're using FastCGI. Something I didn't mention was that I attempted to use FastCGI, but gave up because my memory usage kept snowballing until I had to reboot my server over and over again. I don't know for sure whether it would have made things any faster.

David, Nginx is awesome.

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#22
post #17
post #15

Earlier quoted context omitted.

Nginx configuration is about as powerful as Apache, and personally easier for me to grok, but you have to be able to get past the lack of documentation. Here's the configuration file from my new project -- with the domain name removed. I've marked the magic bits that gets you Wordpress pretty URL compatibility. If you're actually asking about more complicated rewrites, those are all possible too -- look at the Nginx…

That's a much more attractive configuration file than an Apache one. I see that you're using FastCGI. Something I didn't mention was that I attempted to use FastCGI, but gave up because my memory usage kept snowballing until I had to reboot my server over and over again. I don't know for sure whether it would have made things any faster.

Here's the simplest way I've found how to do it. There is also a snippet of Nginx config floating out there for enabling SuperCache (and I assume Total Cache would be easy to implement too). I am able to run 8 FastCGI processes + nginx + MySQL (with InnoDB) on a 256MB VPS, but YMMV. Overall, nginx is awesome.

http://igorpartola.com/web-development/how-to-set-up-nginx-w...

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#24
post #19
post #18

Earlier quoted context omitted.

The "FAQ" link below the description leads to: "Chennai Central is a bandwidth saver plugin that makes your wordpress site support conditional GETs by search engine crawlers , feed readers and more." (followed by more detail about what conditional GETs are, and why they help)

For me the FAQ was empty, maybe a compatability problem with Android's browser. I'll check it out on a real computer.

Never mind the FAQ, the "Download Now!" link is a 404.

I'm kind of surprised that in 2010 stock Wordpress would not have this kind of cache-friendliness built in.

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#25
post #11
post #7

If your problem is CPU usage rather than bandwidth overage, consider switching from Apache to nginx. I found my LAMP WordPress blog (hosted on a small VPS and using W3 Total Cache) was having trouble with concurrent users - traffic spikes would make my CPU usage skyrocket. I've since switched to nginx and the results have been great under moderate to high traffic, and without the use of any caching plugin.

I heard that advice about nginx, but was concerned about lack of a mod_rewrite module for smart URL structure. Is there a way to have search-engine-friendly-urls easily with nginx?

I recently posted about configuring a BSD machine to run Wordpress on nginx, hope it helps.

http://www.bureau14.fr/blogea/index.php/2010/04/setting-up-a...

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#26
post #21
post #17

Earlier quoted context omitted.

That's a much more attractive configuration file than an Apache one. I see that you're using FastCGI. Something I didn't mention was that I attempted to use FastCGI, but gave up because my memory usage kept snowballing until I had to reboot my server over and over again. I don't know for sure whether it would have made things any faster.

David, Nginx is awesome.

No, you're awesome, Jöel

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#28
post #27

"A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy". In reality, it is 6 in IE 8, 8 in FF 3.x, Safari and Opera

Thanks for that. I heard something similar but couldn't find records of specifics. I suppose that means that its 6 in Chrome as well.

And of course, there is IE7, which is still what many of my visitors use.

Re: How I reduced Page Load Time by 75% - WordPress Optimization

#29

Great tips. The most useful one for me is to put images and script files on a subdomain. Doesn't adding CSS and JavaScript inline hurt your google rank?

>Doesn't adding CSS and JavaScript inline hurt your google rank? Why would it do that?

I think I was confused with mixing content with code. Putting style information in tags seems to be bad but not in the header. Even Google seems to use inline script/style code in the head of their website.
Post reply on HN