i18n-active_record
i18n-active_record copied to clipboard
Does the cache get invalidated across the multi threads?
I like the idea of this gem and would like to know if the translation cache is invalidated across the multi threads?
For example: Translation for key hello
is world
- Web worker A and B are holding the cache as
{ en: { hello: 'world' } }
- A translation update request is sent to Web worker A and updated translation for
hello
to bezworld
,I18n.backend.reload!
is called and Worker A will refetch the translations and now has the cache as{ en: { hello: 'zworld' } }
Does calling I18n.backend.reload!
in Worker A also invalidate caches in Worker B?