Skip to content

fix spree_nav_cache_key change every time bug#1

Open
AriseshineSky wants to merge 2 commits intomasterfrom
fix/nav_cache_key
Open

fix spree_nav_cache_key change every time bug#1
AriseshineSky wants to merge 2 commits intomasterfrom
fix/nav_cache_key

Conversation

@AriseshineSky
Copy link
Copy Markdown

current_store is an object, and it is an instance of Spree::Store. current_store.to_s return Spree::Store and an encoding of the object id. The object id changes in every request, so does the cache key.
Every field and attachment of store changes, it will update current store's updated_at. So current_store.updated_at can be used as cache key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants