cache on the refer links

This commit is contained in:
CHIEFSOFT\ameye
2024-11-30 13:23:55 -05:00
parent 8cfb11fa95
commit d0bbd2e6f6
+2 -2
View File
@@ -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";