Example #1
0
 private function getAllCitiesAndCountries()
 {
     $cache = Zend_Registry::get('short_cache');
     // Load user locations from cache
     if (!($resultList = $cache->load('UserLocationsList'))) {
         $userModel = new Default_Model_UserProfiles();
         $locations = $userModel->getAllUsersLocations();
         $cache->save($locations, 'UserLocationsList');
     } else {
         $locations = $resultList;
     }
     $output = $locations;
     return $output;
 }