cache on the refer links
This commit is contained in:
@@ -18,7 +18,7 @@ class WrenchJobs extends BaseController
|
|||||||
$in = json_decode($raw_json, true);
|
$in = json_decode($raw_json, true);
|
||||||
$in["action"] = -1;
|
$in["action"] = -1;
|
||||||
$out=[];
|
$out=[];
|
||||||
$endpoint = "COMPLETED_HX-". $in["uid"];
|
$endpoint = "COMPLETED_HX-". str_replace('-','_', $in["uid"]);
|
||||||
|
|
||||||
// $out = $this->getCache($endpoint);
|
// $out = $this->getCache($endpoint);
|
||||||
if ( count($out)==0 ){
|
if ( count($out)==0 ){
|
||||||
@@ -144,7 +144,7 @@ class WrenchJobs extends BaseController
|
|||||||
public function contractHx(){
|
public function contractHx(){
|
||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
$in = json_decode($raw_json, true);
|
$in = json_decode($raw_json, true);
|
||||||
$endpoint = "USER_CONTRACT_HX-". $in["uid"];
|
$endpoint = "USER_CONTRACT_HX-". str_replace('-','_', $in["uid"]);;
|
||||||
$out = $this->getCache($endpoint);
|
$out = $this->getCache($endpoint);
|
||||||
if ( count($out)==0 ){
|
if ( count($out)==0 ){
|
||||||
$local_url = "http://".$this->micro_service_net1.":3033/contractHx";
|
$local_url = "http://".$this->micro_service_net1.":3033/contractHx";
|
||||||
|
|||||||
Reference in New Issue
Block a user