Skip to content

Commit 91cb1cf

Browse files
committed
Merge pull request rughh#163 from phoet/fix_locales_for_cache_expiration
expires partials for es as well
2 parents 7e2307d + cb59db3 commit 91cb1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/observers/cache_expiration.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def after_destroy(entitiy)
1414
end
1515

1616
def self.expire_view_cache
17-
[:de, :en].each do |locale|
17+
I18n.available_locales.each do |locale|
1818
[[:home, :index], [:highlights], [:jobs]].each do |segment|
1919
key = [:views, Whitelabel[:label_id], locale]
2020
key = key.concat(segment).join("/")

0 commit comments

Comments
 (0)