From 4a05671ae37053629e70e012702646d70f6d6943 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 23 Aug 2024 10:18:39 -0400 Subject: [PATCH] adjust cache times --- www-api/app/Controllers/WrenchJobs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 291dd063..b768bf6a 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -24,7 +24,7 @@ class WrenchJobs extends BaseController if ( count($out)==0 ){ $local_url = "http://".$this->micro_service_net1.":3033/completedHx"; $out = $this->APIcall('GET', $local_url, $in); - $this->saveCache($endpoint,$out,10000); + $this->saveCache($endpoint,$out,3000); $out['internal_return'] = 0; // just backwad comaptobility log_message('critical', "***** ***** WrenchJobs::verifyCompletedHx Cache Done:::Ret "); } @@ -56,7 +56,7 @@ class WrenchJobs extends BaseController if ( count($out)==0 ){ $local_url = "http://".$this->micro_service_net1.":3033/marketjobs"; $out = $this->APIcall('GET', $local_url, $in); - $this->saveCache($endpoint,$out,15000); + $this->saveCache($endpoint,$out,3000); $out['internal_return'] = 0; // just backwad comaptobility log_message('critical', "***** ***** WrenchJobs::getJobsData Cache Done:::Ret "); } @@ -89,7 +89,7 @@ class WrenchJobs extends BaseController $out=[]; $local_url = "http://".$this->micro_service_net1.":3033/contractHx"; $out = $this->APIcall('GET', $local_url, $in ); - return $this->respond( $this->summaryReturnData($in,$out), 200); + return $this->respond( $this->summaryReturnData($in,$out), 3000); } public function sendJobInterest(){