]> git.kaiwu.me - nginx.git/commit
Upstream: mutually exclusive inheritance of "cache" and "store".
authorValentin Bartenev <vbart@nginx.com>
Mon, 22 Dec 2014 09:58:59 +0000 (12:58 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 22 Dec 2014 09:58:59 +0000 (12:58 +0300)
commit66dcbab7a13bc0cf5212aebd662dcb23cec8808d
tree2b82b5787c5f0c78f71eafcb41c58eaa3b6c5871
parent492844dbb18035617b6c220c4a857d9333c6ea61
Upstream: mutually exclusive inheritance of "cache" and "store".

Currently, storing and caching mechanisms cannot work together, and a
configuration error is thrown when the proxy_store and proxy_cache
directives (as well as their friends) are configured on the same level.

But configurations like in the example below were allowed and could result
in critical errors in the error log:

    proxy_store on;

    location / {
        proxy_cache one;
    }

Only proxy_store worked in this case.

For more predictable and errorless behavior these directives now prevent
each other from being inherited from the previous level.
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c