Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed: remove double caching of checkout line items

Damian Legawiec206a10bf37a1
diff --git a/storefront/app/views/spree/checkout/_line_items.html.erb b/storefront/app/views/spree/checkout/_line_items.html.erb
index 67b9927108..bc45103dca 100644
--- a/storefront/app/views/spree/checkout/_line_items.html.erb
+++ b/storefront/app/views/spree/checkout/_line_items.html.erb
@@ -1,7 +1,5 @@
<%= turbo_frame_tag :checkout_line_items, id: 'line_items', target: '_top' do %>
- <% cache spree_storefront_base_cache_scope.call(order.line_items.cache_key_with_version) do %>
- <div class="overflow-y-auto line-items flex flex-col gap-5 pt-5 md:pt-0" data-checkout-summary-target="line_items">
- <%= render collection: order.line_items, partial: 'spree/checkout/line_item', cached: spree_storefront_base_cache_scope %>
- </div>
- <% end %>
+ <div class="overflow-y-auto line-items flex flex-col gap-5 pt-5 md:pt-0" data-checkout-summary-target="line_items">
+ <%= render collection: order.line_items, partial: 'spree/checkout/line_item', cached: spree_storefront_base_cache_scope %>
+ </div>
<% end %>