1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

Don't set arbitrary cache timeouts for DNS stuff

This commit is contained in:
Michael Foster 2013-08-29 20:40:39 +10:00
parent 10e05d9f6e
commit 5adadcd838

View File

@ -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;
}