浏览代码

memcache upd

station_14109
altob.rd 8 年前
父节点
当前提交
7cd390ac9a
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. +1
    -1
      controllers/Cars.php
  2. +4
    -0
      controllers/Pks.php

+ 1
- 1
controllers/Cars.php 查看文件

@@ -87,7 +87,7 @@ class Cars extends CI_Controller
// 共用記憶體
$this->vars['mcache'] = new Memcache;
$this->vars['mcache']->pconnect(MEMCACHE_HOST, MEMCACHE_PORT) or die ('Could not connect memcache');
$this->vars['mcache']->pconnect(MEMCACHE_HOST, MEMCACHE_PORT); // or die ('Could not connect memcache');
/*
// mqtt subscribe


+ 4
- 0
controllers/Pks.php 查看文件

@@ -85,6 +85,10 @@ class Pks extends CI_Controller
$this->load->model('pks_model');
$this->pks_model->init($this->vars);
// 共用記憶體
$this->vars['mcache'] = new Memcache;
$this->vars['mcache']->pconnect(MEMCACHE_HOST, MEMCACHE_PORT); // or die ('Could not connect memcache');
// 資料介接模組
$this->load->model('sync_data_model');
$this->sync_data_model->init($this->vars);


正在加载...
取消
保存