Horde_ActiveSync_Collections::updateCollectionsFromCache PHP Метод

updateCollectionsFromCache() публичный Метод

Updates data from the cache for collectons that are already loaded. Used to ensure looping SYNC and PING requests are operating on the most recent syncKey.
    public function updateCollectionsFromCache()
    {
        $this->_cache->refreshCollections();
        $collections = $this->_cache->getCollections();
        foreach (array_keys($this->_collections) as $id) {
            if (!empty($collections[$id])) {
                $this->_logger->info(sprintf('[%s] Refreshing %s from the cache.', $this->_procid, $id));
                $this->_collections[$id] = $collections[$id];
            }
        }
    }