|
@@ 3101-3102 (lines=2) @@
|
| 3098 |
|
$size = false; |
| 3099 |
|
|
| 3100 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 3101 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 3102 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 3103 |
|
|
| 3104 |
|
// Didn't work. |
| 3105 |
|
return $size; |
|
@@ 3978-3979 (lines=2) @@
|
| 3975 |
|
$host = @gethostbyaddr($ip); |
| 3976 |
|
|
| 3977 |
|
// It took a long time, so let's cache it! |
| 3978 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3979 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3980 |
|
|
| 3981 |
|
return $host; |
| 3982 |
|
} |