fixes #3271
This commit is contained in:
@@ -172,8 +172,8 @@ class User < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update_cache
|
def update_cache
|
||||||
Cache.put("uin:#{id}", name)
|
Cache.put("uin:#{id}", name, 4.hours)
|
||||||
Cache.put("uni:#{Cache.hash(name)}", id)
|
Cache.put("uni:#{Cache.hash(name)}", id, 4.hours)
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_remote_cache
|
def update_remote_cache
|
||||||
|
|||||||
Reference in New Issue
Block a user