Welcome! Log In Create A New Profile

Advanced

Re: Странное поведение proxy cache

Maxim Dounin
April 05, 2014 06:12PM
Hello!

On Sat, Apr 05, 2014 at 10:28:05PM +0400, Ilya Ivantsov wrote:

> Добавьте "proxy_cache_lock on;".
>
> http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_cache_lock

Директива proxy_cache_lock работает при добавлении в кеш новых
элементов. Тут же речь идёт об обновлениях:

> >Однако каждую минуту на бэкенд (который proxy_pass http://127.0.0.1:81;)
> >поступает вместо одного запроса для главной страницы, штук 50-300. В чем
> >может быть проблема?

Правильное решение - "proxy_cache_use_stale updating", см. тут:

http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_cache_use_stale

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Странное поведение proxy_cache

justcyber April 05, 2014 08:10AM

Re: Странное поведение proxy cache

Ilya Ivantsov April 05, 2014 02:30PM

Re: Странное поведение proxy cache

Maxim Dounin April 05, 2014 06:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
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