Update user name to id cache on save

Should fix #1731
This commit is contained in:
Toks
2013-07-22 12:50:33 -04:00
parent f570b9b70d
commit b80c5fb67e

View File

@@ -103,6 +103,7 @@ class User < ActiveRecord::Base
def update_cache
Cache.put("uin:#{id}", name)
Cache.put("uni:#{Cache.sanitize(name)}", id)
end
def update_remote_cache