diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 390d9e12..56d8f237 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -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 ){