which one is better?

Igor Sysoev is at rambler-co.ru
Tue Apr 21 12:31:50 MSD 2009


On Tue, Apr 21, 2009 at 03:10:31PM +0700, Glen Lumanau wrote:

> Is there any help page regarding fastcgi_cache? Or it's the same format as
> proxy_cache?

Yes, just s/proxy/fastcgi/.

The single difference is that fastcgi cache requires

      fastcgi_cache_key   localhost:9000$request_uri;

while proxy_cache may use default one, similar to this:

proxy_cache_key  $scheme$proxy_host$uri$is_args$args;


> -----Original Message-----
> From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Igor
> Sysoev
> Sent: 21 April 2009 14:41
> To: nginx at sysoev.ru
> Subject: Re: which one is better?
> 
> On Tue, Apr 21, 2009 at 01:20:05PM +0700, Glen Lumanau wrote:
> 
> > I still wonder which one is better for performance
> > 
> > Pure nginx + php-fpm
> > 
> > Or
> > 
> > Nginx + apache2 + proxy_cache
> > 
> > Anybody knows about this?
> 
> Can not say about apache2 vs php-fpm, but you can use fastcgi_cache too.
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list