comparison src/http/modules/ngx_http_fastcgi_module.c @ 3700:e40453e6931b

add warnings for proxy_no_cache and fastcgi_no_cache
author Igor Sysoev <igor@sysoev.ru>
date Mon, 19 Jul 2010 09:55:43 +0000
parents b0a0686a85bb
children 4b773fc06336
comparison
equal deleted inserted replaced
3699:b0a0686a85bb 3700:e40453e6931b
2220 prev->upstream.cache_bypass, NULL); 2220 prev->upstream.cache_bypass, NULL);
2221 2221
2222 ngx_conf_merge_ptr_value(conf->upstream.no_cache, 2222 ngx_conf_merge_ptr_value(conf->upstream.no_cache,
2223 prev->upstream.no_cache, NULL); 2223 prev->upstream.no_cache, NULL);
2224 2224
2225 if (conf->upstream.no_cache && conf->upstream.cache_bypass == NULL) {
2226 ngx_log_error(NGX_LOG_WARN, cf->log, 0,
2227 "\"fastcgi_no_cache\" functionality has been changed in 0.8.46, "
2228 "now it should be used together with \"fastcgi_cache_bypass\"");
2229 }
2230
2225 ngx_conf_merge_ptr_value(conf->upstream.cache_valid, 2231 ngx_conf_merge_ptr_value(conf->upstream.cache_valid,
2226 prev->upstream.cache_valid, NULL); 2232 prev->upstream.cache_valid, NULL);
2227 2233
2228 if (conf->cache_key.value.data == NULL) { 2234 if (conf->cache_key.value.data == NULL) {
2229 conf->cache_key = prev->cache_key; 2235 conf->cache_key = prev->cache_key;