]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Remove use of wildcard cache expiry
[rails.git] / app / controllers / application_controller.rb
index 9af28de6f627de91c1a72151f6fb51dae21479c5..c50c5f66491fcfea5493a52b7a2f73ab8828b05c 100644 (file)
@@ -261,8 +261,9 @@ class ApplicationController < ActionController::Base
   ##
   # extend expire_action to expire all variants
   def expire_action(options = {})
-    path = ActionCachePath.path_for(self, options, false).gsub('?', '.').gsub(':', '.')
-    expire_fragment(Regexp.new(Regexp.escape(path) + "\\..*"))
+    I18n.available_locales.each do |locale|
+      super options.merge(:locale => locale)
+    end
   end
 
   ##