From d0bbd2e6f6656d16754ebde33d3c9e89c6034414 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 30 Nov 2024 13:23:55 -0500 Subject: [PATCH] cache on the refer links --- www-api/app/Controllers/WrenchJobs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 927ec946..3edfdde2 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -18,7 +18,7 @@ class WrenchJobs extends BaseController $in = json_decode($raw_json, true); $in["action"] = -1; $out=[]; - $endpoint = "COMPLETED_HX-". $in["uid"]; + $endpoint = "COMPLETED_HX-". str_replace('-','_', $in["uid"]); // $out = $this->getCache($endpoint); if ( count($out)==0 ){ @@ -144,7 +144,7 @@ class WrenchJobs extends BaseController public function contractHx(){ $raw_json = file_get_contents('php://input'); $in = json_decode($raw_json, true); - $endpoint = "USER_CONTRACT_HX-". $in["uid"]; + $endpoint = "USER_CONTRACT_HX-". str_replace('-','_', $in["uid"]);; $out = $this->getCache($endpoint); if ( count($out)==0 ){ $local_url = "http://".$this->micro_service_net1.":3033/contractHx";