loadCacheFromStorage() public method

Repopulate the cache data from storage.
Esempio n. 1
0
 /**
  * Prepare for a hierarchy sync.
  *
  * @param string $synckey  The current synckey from the client.
  *
  * @return array  An array of known folders.
  */
 public function initHierarchySync($synckey)
 {
     $this->_as->state->loadState(array(), $synckey, Horde_ActiveSync::REQUEST_TYPE_FOLDERSYNC);
     // Refresh the cache since it might have changed like e.g., if synckey
     // was empty.
     $this->_cache->loadCacheFromStorage();
     return $this->_as->state->getKnownFolders();
 }