aris
1
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:
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. 
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
I hope someday, something like this will be part of Nginx core…
Posted at Nginx Forum: