]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Fix problems with database offline mode
[rails.git] / app / controllers / user_controller.rb
index b337dc04c6cd8fd50014344c8ec4ae5fdb1b3a73..70328f5a5d637f3f1b6b2116d697692e28caf0c3 100644 (file)
@@ -17,7 +17,7 @@ class UserController < ApplicationController
 
   filter_parameter_logging :password, :pass_crypt, :pass_crypt_confirmation
 
-  cache_sweeper :user_sweeper, :only => [:account, :set_status, :delete], :unless => STATUS == :database_offline
+  cache_sweeper :user_sweeper, :only => [:account, :set_status, :delete]
 
   def terms
     @legale = params[:legale] || OSM.IPToCountry(request.remote_ip) || DEFAULT_LEGALE