dont cache eror

This commit is contained in:
CHIEFSOFT\ameye
2024-08-08 09:52:43 -04:00
parent 89bb37e756
commit c900def345
@@ -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 );
}