|
@@ 2974-2975 (lines=2) @@
|
| 2971 |
|
$size = false; |
| 2972 |
|
|
| 2973 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 2974 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 2975 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 2976 |
|
|
| 2977 |
|
// Didn't work. |
| 2978 |
|
return $size; |
|
@@ 3855-3856 (lines=2) @@
|
| 3852 |
|
$host = @gethostbyaddr($ip); |
| 3853 |
|
|
| 3854 |
|
// It took a long time, so let's cache it! |
| 3855 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3856 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3857 |
|
|
| 3858 |
|
return $host; |
| 3859 |
|
} |