From d487b66de595b4c08816484c4448917cf066a7ac Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 26 Oct 2024 22:07:09 -0400 Subject: [PATCH] controlled aache --- www-api/app/Controllers/WrenchWallet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ){