lib/wcc/contentful/middleware/store/caching_middleware.rb in wcc-contentful-1.1.2 vs lib/wcc/contentful/middleware/store/caching_middleware.rb in wcc-contentful-1.2.0

- old
+ new

@@ -18,10 +18,10 @@ found = @cache.fetch(key, expires_in: expires_in) do event = 'miss' # if it's not a contentful ID don't hit the API. # Store a nil object if we can't find the object on the CDN. - (store.find(key, options) || nil_obj(key)) if key =~ /^\w+$/ + (store.find(key, **options) || nil_obj(key)) if key =~ /^\w+$/ end _instrument(event, key: key, options: options) case found.try(:dig, 'sys', 'type') when 'Nil', 'DeletedEntry', 'DeletedAsset'