email fix

This commit is contained in:
CHIEFSOFT\ameye
2024-10-05 23:40:25 -04:00
parent bb34455bd3
commit cbe3386da6
2 changed files with 11 additions and 5 deletions
+9 -4
View File
@@ -40,6 +40,8 @@ abstract class BaseController extends Controller
*/
protected $helpers = [];
private $cache_tag='NONE';
private $cache_server;
//private $cache_server='10.0.0.32';
public $current_env=0;
public $primary_image_sever='';
@@ -67,9 +69,10 @@ abstract class BaseController extends Controller
$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);
// $appConfig = config('Cache');
// $appConfig->redis['host'] = $this->getSiteConfigurations("system.cache_host");
// $this->cache_server = cache()->initialize($appConfig);
//
// var_dump($appConfig->redis['host']);
// exit();
@@ -86,7 +89,6 @@ abstract class BaseController extends Controller
// //$this->load->driver('cache', $redis);
}
public function getIpData(){
//$ip_loc="0.0.0.0";
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
@@ -98,6 +100,9 @@ abstract class BaseController extends Controller
}
return $ip_loc;
}
public function saveCache($cacheKey,$data,$timeLine=5000){
$cacheKey = $this->cache_tag."-".$cacheKey;
// $cache = \Config\Services::cache();