Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix expanding cache key for single element arrays #4007

Merged

Conversation

exviva
Copy link
Contributor

@exviva exviva commented Dec 16, 2011

In short:
expand_cache_key(element) should not equal expand_cache_key([element])

This way a fragment cache key for an index page with only a single
element in the collection is different than a fragment cache for a
typical show page for that element.

In short:
expand_cache_key(element) should not equal expand_cache_key([element])

This way a fragment cache key for an index page with only a single
element in the collection is different than a fragment cache for a
typical show page for that element.
josevalim added a commit that referenced this pull request Dec 16, 2011
…_array

Fix expanding cache key for single element arrays
@josevalim josevalim merged commit 4f35d5a into rails:master Dec 16, 2011
@exviva exviva deleted the expand_cache_key_for_one_element_array branch March 10, 2016 20:53
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.

None yet

2 participants