Heim  >  Fragen und Antworten  >  Hauptteil

Caching – Was bedeuten diese beiden Nginx-Einstellungen?

proxy_cache_min_uses 3;
proxy_cache_bypass $cookie_nocache $arg_nocache;
phpcn_u1582phpcn_u15822712 Tage vor466

Antworte allen(2)Ich werde antworten

  • 漂亮男人

    漂亮男人2017-05-16 17:28:19

    proxy_cache_min_uses 3; #3次查询之后结果会缓存
    proxy_cache_bypass $cookie_nocache $arg_nocache;

    cookie_nocache和arg_nocache这两个变量不为空时该次请求结果不从缓存中取出

    Antwort
    0
  • 高洛峰

    高洛峰2017-05-16 17:28:19

    http://nginx.org/cn/docs/http/ngx_http_proxy_module.html

    Antwort
    0
  • StornierenAntwort