|
@@ 3129-3130 (lines=2) @@
|
| 3126 |
|
$size = false; |
| 3127 |
|
|
| 3128 |
|
// If this took a long time, we may never have to do it again, but then again we might... |
| 3129 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.8) |
| 3130 |
|
cache_put_data('url_image_size-' . md5($url), $size, 240); |
| 3131 |
|
|
| 3132 |
|
// Didn't work. |
| 3133 |
|
return $size; |
|
@@ 4095-4096 (lines=2) @@
|
| 4092 |
|
$host = @gethostbyaddr($ip); |
| 4093 |
|
|
| 4094 |
|
// It took a long time, so let's cache it! |
| 4095 |
|
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5) |
| 4096 |
|
cache_put_data('hostlookup-' . $ip, $host, 600); |
| 4097 |
|
|
| 4098 |
|
return $host; |
| 4099 |
|
} |