Skip to content

Commit

Permalink
Feature #6230 Increase Unbound Host Cache
Browse files Browse the repository at this point in the history
This is very easy to do, if people are happy to have 100,000 as an option.
  • Loading branch information
Phil Davis committed Apr 22, 2016
1 parent 7bb301e commit 102446a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usr/local/www/services_unbound_advanced.php
Expand Up @@ -147,7 +147,7 @@
if (isset($_POST['infra_host_ttl']) && !in_array($_POST['infra_host_ttl'], array('60', '120', '300', '600', '900'), true)) {
$input_errors[] = gettext("A valid value must be specified for TTL for Host Cache Entries.");
}
if (isset($_POST['infra_cache_numhosts']) && !in_array($_POST['infra_cache_numhosts'], array('1000', '5000', '10000', '20000', '50000'), true)) {
if (isset($_POST['infra_cache_numhosts']) && !in_array($_POST['infra_cache_numhosts'], array('1000', '5000', '10000', '20000', '50000', '100000'), true)) {
$input_errors[] = gettext("A valid value must be specified for Number of Hosts to Cache.");
}
if (isset($_POST['unwanted_reply_threshold']) && !in_array($_POST['unwanted_reply_threshold'], array('disabled', '5000000', '10000000', '20000000', '40000000', '50000000'), true)) {
Expand Down Expand Up @@ -352,7 +352,7 @@
'infra_cache_numhosts',
'Number of Hosts to Cache',
$pconfig['infra_cache_numhosts'],
array_combine(array("1000", "5000", "10000", "20000", "50000"), array("1000", "5000", "10000", "20000", "50000"))
array_combine(array("1000", "5000", "10000", "20000", "50000", "100000"), array("1000", "5000", "10000", "20000", "50000", "100000"))
))->setHelp('Number of infrastructure hosts for which information is cached. The default is 10,000.');

$mln = gettext("million");
Expand Down

0 comments on commit 102446a

Please sign in to comment.