Fix cache condition
This commit is contained in:
@@ -40,7 +40,7 @@ class WrenchGeneralData extends BaseController
|
||||
if ( empty($out) || !is_array($out)){
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
if ($ret > 0 ){ // dont cache error
|
||||
if ($ret >= 0 ){ // dont cache error
|
||||
$this->saveCache($endpoint,$out,25000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user