diff --git a/frontend/app/controllers/spree/products_controller.rb b/frontend/app/controllers/spree/products_controller.rb index 5dbff0cc154..d823d541b5e 100644 --- a/frontend/app/controllers/spree/products_controller.rb +++ b/frontend/app/controllers/spree/products_controller.rb @@ -70,7 +70,7 @@ def load_variants end def load_products - retrieved = Rails.cache.fetch params.permit do + retrieved = Rails.cache.fetch params.permit! do searcher = build_searcher(params.merge(include_images: true)) products = searcher.retrieve_products.includes(:variants_including_master, master: :default_price) products_total_count = products.total_count diff --git a/frontend/app/views/spree/products/index.html.erb b/frontend/app/views/spree/products/index.html.erb index bbfa6e40669..4cd10f562e8 100644 --- a/frontend/app/views/spree/products/index.html.erb +++ b/frontend/app/views/spree/products/index.html.erb @@ -36,7 +36,7 @@ <%= render 'spree/products/filters_desktop', permitted_params: permitted_params %>