Spree::ProductsHelper.module_eval do
  def cache_key_for_products
    count = @products.count
    hash = Digest::SHA1.hexdigest(params.to_json)
    "#{I18n.locale}/#{current_currency}/spree/products/all-#{params[:page]}-#{hash}-#{count}"
  end
end

Spree::ProductsHelper.module_eval do
  def cache_key_for_products
    count = @products.count
    hash = Digest::SHA1.hexdigest(params.to_json)
    max_updated_at = @products.records.maximum(:updated_at) || Date.today
    "#{I18n.locale}/#{current_currency}/spree/products/all-#{params[:page]}-#{hash}-#{count}-#{max_updated_at.to_s(:number)}"
  end
end

Add Spree::Product last updated_at to the cache key
Add Spree::Product last updated_at to the cache key

Signed-off-by: Rahul Rajeev <0b6a614878d5f7381869179a092ee8da72982471@pivotal.io>
