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