Mercurial > hg > nginx
comparison src/http/modules/ngx_http_scgi_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 | 733952da0a8a |
children | d09b689911ac |
comparison
equal
deleted
inserted
replaced
5828:733952da0a8a | 5829:906530c9ffd2 |
---|---|
1335 | 1335 |
1336 if (conf->cache_key.value.data == NULL) { | 1336 if (conf->cache_key.value.data == NULL) { |
1337 conf->cache_key = prev->cache_key; | 1337 conf->cache_key = prev->cache_key; |
1338 } | 1338 } |
1339 | 1339 |
1340 if (conf->upstream.cache && conf->cache_key.value.data == NULL) { | |
1341 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, | |
1342 "no \"scgi_cache_key\" for \"scgi_cache\""); | |
1343 } | |
1344 | |
1340 ngx_conf_merge_value(conf->upstream.cache_lock, | 1345 ngx_conf_merge_value(conf->upstream.cache_lock, |
1341 prev->upstream.cache_lock, 0); | 1346 prev->upstream.cache_lock, 0); |
1342 | 1347 |
1343 ngx_conf_merge_msec_value(conf->upstream.cache_lock_timeout, | 1348 ngx_conf_merge_msec_value(conf->upstream.cache_lock_timeout, |
1344 prev->upstream.cache_lock_timeout, 5000); | 1349 prev->upstream.cache_lock_timeout, 5000); |