Browse Source

Don't set arbitrary cache timeouts for DNS stuff

pull/40/head
Michael Foster 11 years ago
parent
commit
8144e517e9
  1. 4
      inc/functions.php

4
inc/functions.php

@ -2003,7 +2003,7 @@ function rDNS($ip_addr) {
}
if ($config['cache']['enabled'])
cache::set('rdns_' . $ip_addr, $host, 3600);
cache::set('rdns_' . $ip_addr, $host);
return $host;
}
@ -2028,7 +2028,7 @@ function DNS($host) {
}
if ($config['cache']['enabled'])
cache::set('dns_' . $host, $ip_addr !== false ? $ip_addr : '?', 3600);
cache::set('dns_' . $host, $ip_addr !== false ? $ip_addr : '?');
return $ip_addr;
}

Loading…
Cancel
Save