|
@@ 3067-3068 (lines=2) @@
|
| 3064 |
|
$size = false; |
| 3065 |
|
|
| 3066 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 3067 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 3068 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 3069 |
|
|
| 3070 |
|
// Didn't work. |
| 3071 |
|
return $size; |
|
@@ 3941-3942 (lines=2) @@
|
| 3938 |
|
$host = @gethostbyaddr($ip); |
| 3939 |
|
|
| 3940 |
|
// It took a long time, so let's cache it! |
| 3941 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3942 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3943 |
|
|
| 3944 |
|
return $host; |
| 3945 |
|
} |