Explorar el Código

memcache upd

station_14109
altob.rd hace 8 años
padre
commit
7cd390ac9a
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  1. +1
    -1
      controllers/Cars.php
  2. +4
    -0
      controllers/Pks.php

+ 1
- 1
controllers/Cars.php Ver fichero

@@ -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 Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar