removed caching
This commit is contained in:
@@ -253,13 +253,13 @@ class WrenchWallet extends BaseController
|
|||||||
$endpoint = "WALLETS-USERS-". str_replace('-','_', $in["uid"]);
|
$endpoint = "WALLETS-USERS-". str_replace('-','_', $in["uid"]);
|
||||||
|
|
||||||
$out = $this->getCache($endpoint);
|
$out = $this->getCache($endpoint);
|
||||||
if (!is_array($out) || !is_array($out['result_list']) || count($out['result_list'])==0 ){
|
// if (!is_array($out) || !is_array($out['result_list']) || count($out['result_list'])==0 ){
|
||||||
$local_url = "http://".$this->micro_service_net1.":3037/getwallets";
|
$local_url = "http://".$this->micro_service_net1.":3037/getwallets";
|
||||||
$out = $this->APIcall('GET', $local_url, $in);
|
$out = $this->APIcall('GET', $local_url, $in);
|
||||||
if ( is_array($out['result_list']) && count($out['result_list']) > 0 ){ // dont cache empty
|
if ( is_array($out['result_list']) && count($out['result_list']) > 0 ){ // dont cache empty
|
||||||
$this->saveCache($endpoint,$out,60);
|
$this->saveCache($endpoint,$out,60);
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
|
|
||||||
if ( is_array($out) && isset($out['result_list'])){
|
if ( is_array($out) && isset($out['result_list'])){
|
||||||
foreach ($out['result_list'] as $index=>$item){
|
foreach ($out['result_list'] as $index=>$item){
|
||||||
|
|||||||
Reference in New Issue
Block a user