Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

fastcgi_cache not caching

$
0
0
Hi,
In my nginx.conf in http section I got:

fastcgi_cache_path /var/cache/nginx/cache/heppler keys_zone=heppler:500m levels=1:2 inactive=600s max_size=100m;
fastcgi_temp_path /var/cache/nginx/fastcgi_temp;


In my server section I got:
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $fastcgi_script_name =404;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_read_timeout 300;
include fastcgi_params;
fastcgi_ignore_headers "Cache-Control";
fastcgi_cache heppler;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_valid 200 10s;
}

But I don't see any files in /var/cache/nginx/cache/heppler

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>