controlled aache

This commit is contained in:
CHIEFSOFT\ameye
2024-10-26 22:07:09 -04:00
parent e8b9d49b75
commit d487b66de5
+3 -1
View File
@@ -227,7 +227,9 @@ class WrenchWallet extends BaseController
if (!is_array($out) || count($out)==0 ){
$local_url = "http://".$this->micro_service_net1.":3037/getwallets";
$out = $this->APIcall('GET', $local_url, $in);
$this->saveCache($endpoint,$out,1500);
if (count($out['result_list']) > 0 ){ // dont cache empty
$this->saveCache($endpoint,$out,1500);
}
}
if ( count($out["result_list"])> 0 ){