remove cacahe conditions
This commit is contained in:
@@ -30,11 +30,11 @@ class WrenchBanners extends BaseController
|
||||
// $in["action"] = WRENCHBOARD_ACCOUNT_LOGIN;
|
||||
$endpoint = "FAMILY_BANNERS-". $in["uid"]; // str_pad($in["uid"], 12, "0", STR_PAD_LEFT);
|
||||
$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";
|
||||
$out = $this->APIcall('GET', $local_url, $in);
|
||||
$this->saveCache($endpoint,$out,1500);
|
||||
}
|
||||
// }
|
||||
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user