+ <% w=nil
+ puts "WHOIS #{voter.ipaddress}"
+ if Cache and w=Cache.get("WHOIS:#{voter.ipaddress}")
+ elsif Cache
+ puts "CREATE"
+ w= Whois::Whois.new(IPAddr.new(voter.ipaddress),false)
+ puts "SEARCH"
+ w.search_whois
+ puts "DONE"
+ Cache.set("WHOIS:#{voter.ipaddress}", w)
+ else
+ w= Whois::Whois.new(IPAddr.new(voter.ipaddress),false)
+ w.search_whois
+ end
+
+ %>