remove cacahe conditions

This commit is contained in:
CHIEFSOFT\ameye
2024-07-19 19:46:37 -04:00
parent 7b93c28fbe
commit c7f68f4373
+2 -2
View File
@@ -30,11 +30,11 @@ class WrenchBanners extends BaseController
// $in["action"] = WRENCHBOARD_ACCOUNT_LOGIN; // $in["action"] = WRENCHBOARD_ACCOUNT_LOGIN;
$endpoint = "FAMILY_BANNERS-". $in["uid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT); $endpoint = "FAMILY_BANNERS-". $in["uid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT);
$out = $this->getCache($endpoint); // try find in cache $out = $this->getCache($endpoint); // try find in cache
if ( count($out) == 0 ){ // if ( count($out) == 0 ){
$local_url = "http://".$this->micro_service_net1.":3032/familybanners"; $local_url = "http://".$this->micro_service_net1.":3032/familybanners";
$out = $this->APIcall('GET', $local_url, $in); $out = $this->APIcall('GET', $local_url, $in);
$this->saveCache($endpoint,$out,1500); $this->saveCache($endpoint,$out,1500);
} // }
return $this->summaryReturnData($in,$out); //json_encode( $final_out ); return $this->summaryReturnData($in,$out); //json_encode( $final_out );
} }