cache server adjustment
This commit is contained in:
@@ -38,6 +38,7 @@ abstract class BaseController extends Controller
|
||||
*/
|
||||
protected $helpers = [];
|
||||
private $cache_tag='NONE';
|
||||
private $cache_server="10.0.0.32";
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
@@ -50,6 +51,19 @@ abstract class BaseController extends Controller
|
||||
|
||||
// E.g.: $this->session = \Config\Services::session();
|
||||
$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(){
|
||||
|
||||
Reference in New Issue
Block a user