just fyi I think you can write lines 50-57 as:

    order = Rails.cache.fetch(cache_key(line_item.order), expires_in: 1.minute) do
      SpreeAvatax::AvataxComputer.new.compute_order_with_context(line_item.order, self)
    end