|
@@ 2909-2910 (lines=2) @@
|
| 2906 |
|
$size = false; |
| 2907 |
|
|
| 2908 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 2909 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 2910 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 2911 |
|
|
| 2912 |
|
// Didn't work. |
| 2913 |
|
return $size; |
|
@@ 3790-3791 (lines=2) @@
|
| 3787 |
|
$host = @gethostbyaddr($ip); |
| 3788 |
|
|
| 3789 |
|
// It took a long time, so let's cache it! |
| 3790 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3791 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3792 |
|
|
| 3793 |
|
return $host; |
| 3794 |
|
} |