+ location=nil
+ if Cache and location=Cache.get("GEO:#{voter.ipaddress}")
+ elsif Cache
+ location = GeoKit::Geocoders::IpGeocoder.geocode(voter.ipaddress)
+ Cache.set "GEO:#{voter.ipaddress}", location
+ else
+ location = GeoKit::Geocoders::IpGeocoder.geocode(voter.ipaddress)
+ end