Fix user id cache expiration.
Use a delayed job instead of a HTTP request to invalidate the user id cache on both servers.
This commit is contained in:
@@ -71,12 +71,6 @@ class UsersController < ApplicationController
|
||||
respond_with(@user, location: edit_user_path(@user))
|
||||
end
|
||||
|
||||
def cache
|
||||
@user = User.find(params[:id])
|
||||
@user.update_cache
|
||||
render plain: ""
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def check_privilege(user)
|
||||
|
||||
Reference in New Issue
Block a user