|
@@ 3000-3001 (lines=2) @@
|
| 2997 |
|
$size = false; |
| 2998 |
|
|
| 2999 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 3000 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 3001 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 3002 |
|
|
| 3003 |
|
// Didn't work. |
| 3004 |
|
return $size; |
|
@@ 3874-3875 (lines=2) @@
|
| 3871 |
|
$host = @gethostbyaddr($ip); |
| 3872 |
|
|
| 3873 |
|
// It took a long time, so let's cache it! |
| 3874 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 3875 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 3876 |
|
|
| 3877 |
|
return $host; |
| 3878 |
|
} |