cache server adjustment

This commit is contained in:
CHIEFSOFT\ameye
2024-07-04 16:43:44 -04:00
parent 7f08dd2838
commit 634e0d0a6a
2 changed files with 16 additions and 1 deletions
@@ -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(){