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.

`cache_key_with_version` for relations is not available in Rails 5.2

Damian Legawiecdc27b49501c7
diff --git a/frontend/app/helpers/spree/navigation_helper.rb b/frontend/app/helpers/spree/navigation_helper.rb
index fd3b0e17da..169244e65d 100644
--- a/frontend/app/helpers/spree/navigation_helper.rb
+++ b/frontend/app/helpers/spree/navigation_helper.rb
@@ -36,7 +36,7 @@ module Spree
current_store.cache_key_with_version,
spree_menu(section)&.cache_key_with_version,
Spree::Config[:logo],
- stores&.cache_key_with_version,
+ stores&.maximum(:updated_at),
section
]
Digest::MD5.hexdigest(keys.join('-'))