inititlialize cache
This commit is contained in:
@@ -66,9 +66,11 @@ abstract class BaseController extends Controller
|
|||||||
$this->server_tag = $this->getSiteConfigurations("system.server_tag");
|
$this->server_tag = $this->getSiteConfigurations("system.server_tag");
|
||||||
$this->micro_service_net1 = $this->getSiteConfigurations("system.micro_service_net1"); //"10.10.1
|
$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';
|
$this->user_server_name = $this->getSiteConfigurations("system.server_name"); // 'https://dev-users.wrenchboard.com';
|
||||||
|
|
||||||
$appConfig = config('Cache');
|
$appConfig = config('Cache');
|
||||||
$appConfig->redis['host'] = $this->getSiteConfigurations("system.cache_host");
|
$appConfig->redis['host'] = $this->getSiteConfigurations("system.cache_host");
|
||||||
|
cache()->initialize($appConfig);
|
||||||
|
|
||||||
// var_dump($appConfig->redis['host']);
|
// var_dump($appConfig->redis['host']);
|
||||||
// exit();
|
// exit();
|
||||||
//$this->cache_server = $this->getSiteConfigurations("system.cache_host");
|
//$this->cache_server = $this->getSiteConfigurations("system.cache_host");
|
||||||
|
|||||||
Reference in New Issue
Block a user