Exemple #1
0
 public function __destruct()
 {
     parent::__destruct();
     if (!$this->_isConnected) {
         return false;
     }
     $this->_memcacheObj->set('keysCached', $this->_keysCached, 0, 0);
     $this->_memcacheObj->set('tablesCached', $this->_tablesCached, 0, 0);
     $this->close();
 }
Exemple #2
0
 public function __destruct()
 {
     parent::__destruct();
     file_put_contents(_PS_CACHEFS_DIRECTORY_ . 'keysCached', serialize($this->_keysCached));
     file_put_contents(_PS_CACHEFS_DIRECTORY_ . 'tablesCached', serialize($this->_tablesCached));
 }