From 2661d3170a31506144aba0543562e40900f87f59 Mon Sep 17 00:00:00 2001 From: Sam Giffney <samuelgiffney@gmail.com> Date: Thu, 17 May 2012 08:06:35 +1000 Subject: [PATCH] ensure false cache_hit on cache miss --- lib/geocoder/lookups/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/geocoder/lookups/base.rb b/lib/geocoder/lookups/base.rb index c2a7528c..6c80e5ec 100644 --- a/lib/geocoder/lookups/base.rb +++ b/lib/geocoder/lookups/base.rb @@ -156,6 +156,7 @@ module Geocoder if cache and (200..399).include?(response.code.to_i) cache[url] = body end + @cache_hit = false end body end -- GitLab