lib/buckybox/api.rb in buckybox-api-1.2.0 vs lib/buckybox/api.rb in buckybox-api-1.2.1
- old
+ new
@@ -93,10 +93,10 @@
parsed_response = response.parsed_response
add_types(parsed_response, types)
}
if type == :get # NOTE: only cache GET method
- cache_key = [uri, to_query(params)].join
+ cache_key = [self.class.headers.hash, uri, to_query(params)].join
@cache ||= {}
@cache[cache_key] ||= query_fresh.call
else
query_fresh.call