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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fixed API `collection_cache_key` (#12131)
Damian Legawieca47d1b2498bc
diff --git a/api/app/controllers/concerns/spree/api/v2/caching.rb b/api/app/controllers/concerns/spree/api/v2/caching.rbindex d0e88b1874..ae16dccd7a 100644--- a/api/app/controllers/concerns/spree/api/v2/caching.rb+++ b/api/app/controllers/concerns/spree/api/v2/caching.rb@@ -5,12 +5,10 @@ module Spreeextend ActiveSupport::Concerndef collection_cache_key(collection)- collection_cache_key = collection.unscope(:includes).unscope(:order).unscope(:group).cache_key_with_version-params.delete(:page) if params[:page] == 1cache_key_parts = [- collection_cache_key,+ collection.cache_key_with_version,resource_includes,sparse_fields,serializer_params_cache_key,