survive if clarion is down
This commit is contained in:
parent
dc7b3b5e92
commit
43b49895e5
|
@ -87,8 +87,13 @@ class SmartCurl {
|
||||||
$response = curl_exec($this->ch);
|
$response = curl_exec($this->ch);
|
||||||
|
|
||||||
if ($response === false) {
|
if ($response === false) {
|
||||||
|
if (file_exists($cache_file)) {
|
||||||
|
return file_get_contents($cache_file);
|
||||||
|
}
|
||||||
|
else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//var_dump(curl_getinfo($this->ch, CURLINFO_HEADER_OUT));
|
//var_dump(curl_getinfo($this->ch, CURLINFO_HEADER_OUT));
|
||||||
//var_dump($response);
|
//var_dump($response);
|
||||||
|
|
Loading…
Reference in New Issue