|
@@ 2988-2989 (lines=2) @@
|
| 2985 |
|
$size = false; |
| 2986 |
|
|
| 2987 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 2988 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 2989 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 2990 |
|
|
| 2991 |
|
// Didn't work. |
| 2992 |
|
return $size; |
|
@@ 3869-3870 (lines=2) @@
|
| 3866 |
|
$host = @gethostbyaddr($ip); |
| 3867 |
|
|
| 3868 |
|
// It took a long time, so let's cache it! |
| 3869 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3870 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3871 |
|
|
| 3872 |
|
return $host; |
| 3873 |
|
} |