Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 5829:906530c9ffd2
Added warning about unset cache keys.
In fastcgi, scgi and uwsgi modules there are no default cache keys, and
using a cache without a cache key set is likely meaningless.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 11 Sep 2014 20:08:52 +0400 |
parents | c95d7882dfc9 |
children | d09b689911ac |
comparison
equal
deleted
inserted
replaced
5828:733952da0a8a | 5829:906530c9ffd2 |
---|---|
2580 | 2580 |
2581 if (conf->cache_key.value.data == NULL) { | 2581 if (conf->cache_key.value.data == NULL) { |
2582 conf->cache_key = prev->cache_key; | 2582 conf->cache_key = prev->cache_key; |
2583 } | 2583 } |
2584 | 2584 |
2585 if (conf->upstream.cache && conf->cache_key.value.data == NULL) { | |
2586 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, | |
2587 "no \"fastcgi_cache_key\" for \"fastcgi_cache\""); | |
2588 } | |
2589 | |
2585 ngx_conf_merge_value(conf->upstream.cache_lock, | 2590 ngx_conf_merge_value(conf->upstream.cache_lock, |
2586 prev->upstream.cache_lock, 0); | 2591 prev->upstream.cache_lock, 0); |
2587 | 2592 |
2588 ngx_conf_merge_msec_value(conf->upstream.cache_lock_timeout, | 2593 ngx_conf_merge_msec_value(conf->upstream.cache_lock_timeout, |
2589 prev->upstream.cache_lock_timeout, 5000); | 2594 prev->upstream.cache_lock_timeout, 5000); |