summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-29 20:40:39 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-29 20:40:39 +1000
commit8144e517e9f3913ef024a45d702f0185a825df39 (patch)
tree023bda70f89980ae5cdc0556b990f8b0f19060bb /inc/functions.php
parent3f26aa5ac3dc3f438a9ce875d355d5040b684054 (diff)
Don't set arbitrary cache timeouts for DNS stuff
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 8b338063..f99713f7 100644
--- a/inc/functions.php
+++ b/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;
}