public function refreshCollections()
{
$syncCache = $this->_state->getSyncCache($this->_devid, $this->_user, array('collections'));
$cache_collections = !is_array($syncCache['collections']) ? array() : $syncCache['collections'];
foreach ($cache_collections as $id => $cache_collection) {
if (!isset($cache_collection['lastsynckey'])) {
continue;
}
$cache_collection['id'] = $id;
$cache_collection['synckey'] = $cache_collection['lastsynckey'];
$this->_data['collections'][$id] = $cache_collection;
$this->_markCollectionsDirty($id);
}
$this->_logger->info(sprintf('[%s] SyncCache collections refreshed.', $this->_procid));
}