Btw, I've looked into possible solution and here is the code to achieve
what you want without modifying Rails:
```
def LocalizedCacheStore(klass)
Class.new(klass) do
def namespaced_key(key, options)
"#{I18n.locale}:#{super}"
end
end
end
config.cache_store =
LocalizedCacheStore(ActiveSupport::Cache::MemoryStore).new # you can pass
any cache class to LocalizedCacheStore
```
It's a good question if we should include it to Rails or not - I'm
interested to listen other's opinion.
On Friday, September 11, 2015 at 12:52:58 AM UTC+3, Anthon Mur wrote:
>
> fix: Hence, shouldn't local*e* be included by default into cache key?
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.