From a839a3af28e6d485f7ce418af9c114b1f56c1619 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 9 Nov 2024 05:03:31 -0500 Subject: [PATCH] is array --- www-api/app/Controllers/WrenchWallet.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index ae683020..6a7bc6ef 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -221,7 +221,7 @@ class WrenchWallet extends BaseController $local_url = "http://".$this->micro_service_net1.":3037/getkidswallets"; $out = $this->APIcall('GET', $local_url, $in); if (count($out['result_list']) > 0 ){ // dont cache empty - $this->saveCache($endpoint,$out,1500); + $this->saveCache($endpoint,$out,60); } } @@ -256,8 +256,8 @@ 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); - if (count($out['result_list']) > 0 ){ // dont cache empty - $this->saveCache($endpoint,$out,1500); + if ( is_array($out['result_list']) && count($out['result_list']) > 0 ){ // dont cache empty + $this->saveCache($endpoint,$out,60); } }