From ed7492909e02c71beb875fbefb10abd17c5c46bf Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 4 Oct 2024 23:39:52 -0400 Subject: [PATCH] get jobs --- www-api/app/Controllers/WrenchJobs.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 8fee848a..aba03422 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -78,15 +78,20 @@ class WrenchJobs extends BaseController $out = $this->APIcall('GET', $local_url, $in); // dont cache junk 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 log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret "); } + $endpointW = "USER_WALLET_COUNTRY-". $in["uid"]; + $outW = $this->getCache($endpointW); // I need your wallet country here - $local_url = "http://".$this->micro_service_net1.":3033/walletcountry"; - $outW = $this->APIcall('GET', $local_url, $in); + if ( is_array($outW) && is_array($outW["result_list"]) && count($outW["result_list"]) > 0){ + $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