FIX: cache admin locale file for 24 hours

This commit is contained in:
Sam
2018-01-09 10:23:49 +11:00
parent fb863e18ec
commit 8ff5f5f2ef
5 changed files with 40 additions and 6 deletions

View File

@@ -131,9 +131,9 @@ module JsLocaleHelper
message_formats.merge!(strip_out_message_formats!(translations[locale_str]['admin_js']))
result = generate_message_format(message_formats, locale_str)
translations.keys.each do |locale|
translations[locale].keys.each do |k|
translations[locale].delete(k) unless k == "js"
translations.keys.each do |l|
translations[l].keys.each do |k|
translations[l].delete(k) unless k == "js"
end
end