]> git.kaiwu.me - nginx.git/commit
Now nginx uses TTL of a DNS response when calculating cache validity.
authorRuslan Ermilov <ru@nginx.com>
Wed, 16 Nov 2011 13:11:39 +0000 (13:11 +0000)
committerRuslan Ermilov <ru@nginx.com>
Wed, 16 Nov 2011 13:11:39 +0000 (13:11 +0000)
commitbec516bec93cbe8bf9d6b9698901caa180d9cf72
treeca57022c98035dc3e063a34b4e38aae8b68b8e53
parent963315aca0a62355eff8240066a0ac1182de428f
Now nginx uses TTL of a DNS response when calculating cache validity.

Previously it used a hardcoded value of 300 seconds.  Also added the
"valid=" parameter to the "resolver" directive that can be used to
override the cache validity time.

Patch by Kirill A. Korinskiy with minor changes.
src/core/ngx_resolver.c