|
@@ 3087-3088 (lines=2) @@
|
| 3084 |
|
$size = false; |
| 3085 |
|
|
| 3086 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 3087 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 3088 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 3089 |
|
|
| 3090 |
|
// Didn't work. |
| 3091 |
|
return $size; |
|
@@ 3961-3962 (lines=2) @@
|
| 3958 |
|
$host = @gethostbyaddr($ip); |
| 3959 |
|
|
| 3960 |
|
// It took a long time, so let's cache it! |
| 3961 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3962 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3963 |
|
|
| 3964 |
|
return $host; |
| 3965 |
|
} |