From bb34455bd3fbaca72f2c31511bb729520fd0a182 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 5 Oct 2024 05:47:31 -0400 Subject: [PATCH] inititlialize cache --- www-api/app/Controllers/BaseController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/BaseController.php b/www-api/app/Controllers/BaseController.php index 2337a2cc..2c36ea28 100644 --- a/www-api/app/Controllers/BaseController.php +++ b/www-api/app/Controllers/BaseController.php @@ -66,9 +66,11 @@ abstract class BaseController extends Controller $this->server_tag = $this->getSiteConfigurations("system.server_tag"); $this->micro_service_net1 = $this->getSiteConfigurations("system.micro_service_net1"); //"10.10.1 $this->user_server_name = $this->getSiteConfigurations("system.server_name"); // 'https://dev-users.wrenchboard.com'; + $appConfig = config('Cache'); $appConfig->redis['host'] = $this->getSiteConfigurations("system.cache_host"); - + cache()->initialize($appConfig); + // var_dump($appConfig->redis['host']); // exit(); //$this->cache_server = $this->getSiteConfigurations("system.cache_host");