Welcome! Log In Create A New Profile

Advanced

Re: fastcgi cache valid для разных location'ов

March 02, 2013 03:58AM
В том то и дело, что так просто оно не работает.

например:

server {

fastcgi_cache_valid 200 301 302 10s;

location /aaa/ {
rewrite ^/aaa/([0-9]+)\.html$ /test.php?p1=$1 last;
}

location /bbb/ {
rewrite ^/bbb/([0-9]+)\.html$ /test2.php?p1=$1 last;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_cache mycache;
fastcgi_cache_key $scheme$host$request_uri$request_method;
#fastcgi_cache_valid 200 301 302 60m;
}
}

Так кэш вообще не включается.
Subject Author Posted

Re: fastcgi cache valid для разных location'ов

Andrey Repin March 01, 2013 07:36PM

Re: fastcgi cache valid для разных location'ов

Namaste March 02, 2013 03:58AM

Re: fastcgi cache valid для разных location'ов

Pavel Mironov March 02, 2013 04:12AM

Re: fastcgi cache valid для разных location'ов

Namaste March 02, 2013 04:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready