New refresh cache

This commit is contained in:
CHIEFSOFT\ameye
2024-09-06 11:29:07 -04:00
parent 60f595d8e8
commit ea879c873f
+8 -1
View File
@@ -47,11 +47,18 @@ class AirFlow extends BaseController
//
public function flowInterestcount(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
log_message('critical', "AirFlow::flowInterestcount ********* ALL ".serialize($in) );
$endpoint = "WRENCH_JOB_INTEREST_COUNT";
$res1 = $this->getCache($endpoint);
if (count($res1)==0){
$local_url = "http://".$this->micro_service_net1.":3033/interestCount";
$out = $this->APIcall('GET', $local_url, $in);
$this->saveCache($endpoint,$out,120);
}
return []; //json_encode( $final_out );
}
public function flowApproveReminder(){