Invalidate cached urls for all frontend locales #1479

Merged
merged 1 commit into from Mar 20, 2012

Conversation

Projects
None yet
2 participants
Contributor

vita commented Mar 20, 2012

No description provided.

end
- def cache_key
- [Refinery::Core.base_cache_key, 'page', ::I18n.locale, id].compact.join('/')
+ def cache_key(locale)
@parndt

parndt Mar 20, 2012

Owner

All the others have default values of I18n.locale but not this one?

@vita

vita Mar 20, 2012

Contributor

Because this method is calling only in path_cache_key and url_cache_key methods and there is locale already set to default value I18n.locale.

@parndt parndt merged commit a0069f4 into refinery:master Mar 20, 2012

Owner

parndt commented Mar 20, 2012

Merged, thank you @vita !

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