Massive speed increase when switching WordPress from apache to nginx
-
I also should mention that I used
yui-compressor
on js files. -
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:
I've always found NGINX to be much lighter weight and performant than Apache.
My website is ultra fast now. https://cloudsecuritylife.com
Almost instant loading
That does load fast!
-
@scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:
I've always found NGINX to be much lighter weight and performant than Apache.
My website is ultra fast now. https://cloudsecuritylife.com
Almost instant loading
That does load fast!
I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but
yui-compressor
on all the js files helped some, too! -
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:
I've always found NGINX to be much lighter weight and performant than Apache.
My website is ultra fast now. https://cloudsecuritylife.com
Almost instant loading
That does load fast!
I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but
yui-compressor
on all the js files helped some, too!Any reason that you are avoiding the CloudFlare cache? Not finding it as fast as Nginx' own?
-
@scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:
I've always found NGINX to be much lighter weight and performant than Apache.
My website is ultra fast now. https://cloudsecuritylife.com
Almost instant loading
That does load fast!
I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but
yui-compressor
on all the js files helped some, too!Any reason that you are avoiding the CloudFlare cache? Not finding it as fast as Nginx' own?
I really wanted to do everything server side and be as lean as possible. I wanted zero plugins related to performance on my WP site. I thought it would be a good idea to try nginx caching as I could always route back through cloudflare. Once turned on and then running
yui-compressor
on my/var/www/html
directory, the performance gains were unreal. -
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
@stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:
I've always found NGINX to be much lighter weight and performant than Apache.
My website is ultra fast now. https://cloudsecuritylife.com
Almost instant loading
That does load fast!
I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but
yui-compressor
on all the js files helped some, too!Any reason that you are avoiding the CloudFlare cache? Not finding it as fast as Nginx' own?
I really wanted to do everything server side and be as lean as possible. I wanted zero plugins related to performance on my WP site. I thought it would be a good idea to try nginx caching as I could always route back through cloudflare. Once turned on and then running
yui-compressor
on my/var/www/html
directory, the performance gains were unreal.Okay, so not really avoiding it, just not using it right now.
-
Is it ONLY a change to Nginx, or was caching added, new DB, updated Lamp stack, etc?
-
@Obsolesce said in Massive speed increase when switching WordPress from apache to nginx:
Is it ONLY a change to Nginx, or was caching added, new DB, updated Lamp stack, etc?
3 changes as stated above:
Nginx
Nginx caching
Javascript compression on server sideI was using cloudflare previously and they supposedly minify js and css along with their CDN. I really wasnt expecting a performance increase.
Oh btw thanks for the decrappifer script on your blog. I ran that against my win10 vm and it helped alot.
-
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
3 changes as stated above:
Nginx
Nginx caching
Javascript compression on server sideAh, yeah I posted before I read. It's just a PITA on mobile.
-
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
Oh btw thanks for the decrappifer script on your blog. I ran that against my win10 vm and it helped alot.
Cool, I'm glad it helped
-
@IRJ said in Massive speed increase when switching WordPress from apache to nginx:
I really wanted to do everything server side and be as lean as possible. I wanted zero plugins related to performance on my WP site.
Lean WP, that's an oxymoron if anything
I've heard before that some sites are slower with cloudflare CDN compared to going straight to the site. Are you using http/2 as well?
Most likely in this case, the switch to nginx from apache itself didn't make anything noticeably faster but the caching and compression did.