How can the cache for the views with translations be invalidated?
问题 Imagine you have two views with code like the following: controller_a/a.html.erb <%= content_tag(:div) do %> <%= I18n.t "some.key" %> <% end %> controller_b/b.html.erb <%= content_tag(:div) do %> <%= I18n.t "some.key" %> <% end %> <%= content_tag(:div) do %> <%= I18n.t "some.other_key" %> <% end %> So, a.html.erb is on controller_a#a, while b.html.erb is on controller_b#b. Both actions are cached by caches_action . How can I make sure that when I change the some.key translation key, both