cache server adjustment
This commit is contained in:
@@ -153,7 +153,8 @@ class Cache extends BaseConfig
|
|||||||
* @var array<string, int|string|null>
|
* @var array<string, int|string|null>
|
||||||
*/
|
*/
|
||||||
public $redis = [
|
public $redis = [
|
||||||
'host' => '10.0.0.32',
|
'host_old' => '10.0.0.32',
|
||||||
|
'host' => '172.16.4.20',
|
||||||
'password' => '7f079034e166ecf52d82cbec9876e4dc8a154b0c37248f3fa1734d4eeab938d5',
|
'password' => '7f079034e166ecf52d82cbec9876e4dc8a154b0c37248f3fa1734d4eeab938d5',
|
||||||
'port' => 6378,
|
'port' => 6378,
|
||||||
'timeout' => 0,
|
'timeout' => 0,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ abstract class BaseController extends Controller
|
|||||||
*/
|
*/
|
||||||
protected $helpers = [];
|
protected $helpers = [];
|
||||||
private $cache_tag='NONE';
|
private $cache_tag='NONE';
|
||||||
|
private $cache_server="10.0.0.32";
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*/
|
*/
|
||||||
@@ -50,6 +51,19 @@ abstract class BaseController extends Controller
|
|||||||
|
|
||||||
// E.g.: $this->session = \Config\Services::session();
|
// E.g.: $this->session = \Config\Services::session();
|
||||||
$this->cache_tag = $this->getSiteConfigurations("system.cache_tag");
|
$this->cache_tag = $this->getSiteConfigurations("system.cache_tag");
|
||||||
|
$this->cache_server = $this->getSiteConfigurations("system.cache_host");
|
||||||
|
|
||||||
|
$redis = [
|
||||||
|
'host' => $this->cache_server,
|
||||||
|
'password' => '7f079034e166ecf52d82cbec9876e4dc8a154b0c37248f3fa1734d4eeab938d5',
|
||||||
|
'port' => 6378,
|
||||||
|
'timeout' => 0,
|
||||||
|
'database' => 0,
|
||||||
|
'prefix' => 'WRB',
|
||||||
|
];
|
||||||
|
//$this->load->driver('cache', $redis);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIpData(){
|
public function getIpData(){
|
||||||
|
|||||||
Reference in New Issue
Block a user