This commit is contained in:
CHIEFSOFT\ameye
2024-10-04 23:39:52 -04:00
parent e044d7bcd6
commit ed7492909e
+8 -3
View File
@@ -78,15 +78,20 @@ class WrenchJobs extends BaseController
$out = $this->APIcall('GET', $local_url, $in); $out = $this->APIcall('GET', $local_url, $in);
// dont cache junk // dont cache junk
if ( is_array($out) && is_array($out["result_list"]) && count($out["result_list"]) > 0){ if ( is_array($out) && is_array($out["result_list"]) && count($out["result_list"]) > 0){
$this->saveCache($endpoint,$out,180); $this->saveCache($endpoint,$out,360);
} }
$out['internal_return'] = 0; // just backwad comaptobility $out['internal_return'] = 0; // just backwad comaptobility
log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret "); log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret ");
} }
$endpointW = "USER_WALLET_COUNTRY-". $in["uid"];
$outW = $this->getCache($endpointW);
// I need your wallet country here // I need your wallet country here
$local_url = "http://".$this->micro_service_net1.":3033/walletcountry"; if ( is_array($outW) && is_array($outW["result_list"]) && count($outW["result_list"]) > 0){
$outW = $this->APIcall('GET', $local_url, $in); $local_urlW = "http://".$this->micro_service_net1.":3033/walletcountry";
$outW = $this->APIcall('GET', $local_urlW, $in);
$this->saveCache($endpointW,$outW,2880);
}
// Fileter result_list to wallet country // Fileter result_list to wallet country