From 53272ffd7f4c7859a2194fa687fb6e542dfb897b Mon Sep 17 00:00:00 2001 From: Afiq Hamzah Date: Wed, 3 Jan 2024 12:41:38 +0800 Subject: [PATCH] Remove caching code because server not ready for it, permission issue --- app/Helper.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/Helper.php b/app/Helper.php index 401dbbc..63fb7b7 100644 --- a/app/Helper.php +++ b/app/Helper.php @@ -59,15 +59,7 @@ class Helper }; - $all_cawangan_db_connection = Cache::store('file')->get('active_cawangan_db_connection'); - - if ($all_cawangan_db_connection === null or count($all_cawangan_db_connection) === 0) { - $all_cawangan_db_connection = $queryActiveCawanganDbConnection(); - Cache::store('file')->put('active_cawangan_db_connection', $all_cawangan_db_connection, 3600); - } - - return $all_cawangan_db_connection; - + return $queryActiveCawanganDbConnection(); } public static function getInactiveCawanganDbConnection()