1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 20:14:51 +01:00

Cache DNS records for a maximum of one day

This commit is contained in:
Niklas Keller 2017-07-12 17:10:04 +02:00
parent 4ef49e8544
commit 35278b07a2

View File

@ -673,7 +673,7 @@ REGEX;
$minttl = $ttl; $minttl = $ttl;
} }
} }
$this->arrayCache->set("$name#$type", $records, $minttl); $this->arrayCache->set("$name#$type", $records, \min($minttl, 86400));
} }
$promisor->succeed($result); $promisor->succeed($result);
} }