plugin/cache: fix TTL for negative DNS responses (#2197)

This commit is contained in:
Ruslan Drozhdzh
2018-10-19 21:10:08 +03:00
committed by Chris O'Haver
parent 54df160aa4
commit dbc2efc49a
3 changed files with 14 additions and 35 deletions

View File

@@ -24,7 +24,6 @@ cache [TTL] [ZONES...]
* **ZONES** zones it should cache for. If empty, the zones from the configuration block are used.
Each element in the cache is cached according to its TTL (with **TTL** as the max).
For the negative cache, the SOA's MinTTL value is used. A TTL of zero is not allowed.
A cache is divided into 256 shards, each holding up to 512 items by default - for a total size
of 256 * 512 = 131,072 items.
@@ -101,4 +100,4 @@ Enable caching for all zones, keep a positive cache size of 5000 and a negative
denial 2500
}
}
~~~
~~~