/** * Delete a mailbox from the cache. * * @param string $mbox The mailbox to delete. */ public function deleteMailbox($mbox) { $mbox = strval($mbox); $this->_backend->deleteMailbox($mbox); if ($this->_debug) { $this->_debug->info(sprintf('CACHE: Deleted mailbox [%s]', $mbox)); } }
/** * Set data in the search cache. * * @param mixed $data The cache data to store. * @param string $sdata The search data returned from _getSearchCache(). */ protected function _setSearchCache($data, $sdata) { $sdata['metadata'][self::CACHE_SEARCH][$sdata['id']] = $data; $this->_cache->setMetaData($this->_selected, null, $sdata['metadata']); if ($this->_debug->debug) { $this->_debug->info(sprintf('SEARCH: Saved %s to cache (%s [%s])', $sdata['type'], $sdata['id'], $this->_selected)); unset($this->_temp['searchcacheexpire'][strval($this->_selected)]); } }