lib/geocoder/cache.rb in geocoder-1.6.7 vs lib/geocoder/cache.rb in geocoder-1.7.0
- old
+ new
@@ -62,10 +62,14 @@
##
# Cache key for a given URL.
#
def key_for(url)
- [prefix, url].join
+ if url.match(/^#{prefix}/)
+ url
+ else
+ [prefix, url].join
+ end
end
##
# Array of keys with the currently configured prefix
# that have non-nil values.