A platform for community discussion. Free, open, simple.
PERF: Only invalidate other translations when en changes (#24443)
David Taylor04a58a6e64b3
diff --git a/app/models/theme_field.rb b/app/models/theme_field.rbindex 53e2d4a896c..8173d49e492 100644--- a/app/models/theme_field.rb+++ b/app/models/theme_field.rb@@ -664,8 +664,8 @@ class ThemeField < ActiveRecord::Basename: ThemeField.scss_fields + ThemeField.html_fields,))- elsif translation_field?- return theme.theme_fields.where(target_id: Theme.targets[:translations])+ elsif translation_field? && name == "en" # en is fallback for all other locales+ return theme.theme_fields.where(target_id: Theme.targets[:translations]).where.not(name: "en")endThemeField.noneend