mirror of
https://github.com/danog/dns.git
synced 2024-11-27 04:24:48 +01:00
Cache DNS records for a maximum of one day
This commit is contained in:
parent
4ef49e8544
commit
35278b07a2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user