Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_background_update ignores regular expression match when updating

Roman Arutyunyan
December 06, 2018 01:04PM
Hi,
On Thu, Dec 06, 2018 at 04:01:36PM +0300, Roman Arutyunyan wrote:

[..]

> This should solve the issue:
>
> location ~ /test/($<name>regular|expression)$ {
> proxy_pass http://127.0.0.1:8010/test/$name;

Sorry, the right syntax is of course this:

location ~ /test/(?<name>regular|expression)$ {
proxy_pass http://127.0.0.1:8010/test/$name;

> > proxy_cache test;
> > proxy_cache_background_update on;
> > proxy_cache_use_stale updating;
> > proxy_cache_valid 10s;
> > }
> > }

[..]

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

proxy_cache_background_update ignores regular expression match when updating

Richard Stanway via nginx December 04, 2018 12:58PM

Re: proxy_cache_background_update ignores regular expression match when updating

Roman Arutyunyan December 06, 2018 08:02AM

Re: proxy_cache_background_update ignores regular expression match when updating

Roman Arutyunyan December 06, 2018 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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