Welcome! Log In Create A New Profile

Advanced

fastcgi_cache_valid игнорирует время кеширования

September 27, 2017 11:26AM
имеется

location /ajax/ops {

default_type application/json;
add_header Charset utf-8;

fastcgi_cache_lock on;
fastcgi_cache_lock_timeout 1s;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache MYAPP;
fastcgi_cache_valid 200 20s;
fastcgi_cache_min_uses 0;
add_header X-CACHE $upstream_cache_status;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
fastcgi_hide_header "Set-Cookie";
root /var/www
include fastcgi_params;
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/index.php;
access_log /var/log/nginx/ops.log;
}


при этом по факту все кешируется не на 20 секунд а на 5
в чем может быть дело?
Subject Author Posted

fastcgi_cache_valid игнорирует время кеширования

neomaq September 27, 2017 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready