Does fastcgi_cache depends on open_file_cache?

Hi All,

I use Nginx on many sites and recently I thought to make use of
fastcgi_cache to capture response of PHP-FPM.

I want to put it in RAM (We have 32GB RAM. More than 50% of it is free)

I am confused as some article suggests - declaring “open_file_cache”
before
we can make use of fastcgi_cache.

Can’t I directly use fastcgi_cache on /run/cache ?

Please suggest.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230739,230739#msg-230739

Hi,

On Sat, Sep 15, 2012 at 7:17 AM, rahul286 [email protected] wrote:

Hi All,

I use Nginx on many sites and recently I thought to make use of
fastcgi_cache to capture response of PHP-FPM.

I want to put it in RAM (We have 32GB RAM. More than 50% of it is free)

I am confused as some article suggests - declaring “open_file_cache” before
we can make use of fastcgi_cache.

No. “open_file_cache” is related to open file descriptors:
http://nginx.org/en/docs/http/ngx_http_core_module.html#open_file_cache
and “fastcgi_cache”
is only related to HTTP cache. They are two different things.

Can’t I directly use fastcgi_cache on /run/cache ?

Yes, you can.

Regards,

Thanks Joshua. :slight_smile:

Got it working directly. It turned out to be easier than I thought.

Only thing complicated was no support for something like
fastcgi_cache_purge
in core

I need to remove official nginx & go through recompilation with
https://github.com/FRiCKLE/ngx_cache_purge
I hope someday, something like this will be part of Nginx core…

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230739,230762#msg-230762

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs