|
@@ 2820-2821 (lines=2) @@
|
| 2817 |
|
$size = false; |
| 2818 |
|
|
| 2819 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 2820 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 2821 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 2822 |
|
|
| 2823 |
|
// Didn't work. |
| 2824 |
|
return $size; |
|
@@ 3683-3684 (lines=2) @@
|
| 3680 |
|
$host = @gethostbyaddr($ip); |
| 3681 |
|
|
| 3682 |
|
// It took a long time, so let's cache it! |
| 3683 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3684 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3685 |
|
|
| 3686 |
|
return $host; |
| 3687 |
|
} |