|
@@ 2972-2973 (lines=2) @@
|
| 2969 |
|
$size = false; |
| 2970 |
|
|
| 2971 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 2972 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 2973 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 2974 |
|
|
| 2975 |
|
// Didn't work. |
| 2976 |
|
return $size; |
|
@@ 3843-3844 (lines=2) @@
|
| 3840 |
|
$host = @gethostbyaddr($ip); |
| 3841 |
|
|
| 3842 |
|
// It took a long time, so let's cache it! |
| 3843 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3844 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3845 |
|
|
| 3846 |
|
return $host; |
| 3847 |
|
} |