projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f3958
)
user: delete user_info data in User.invalidate_cache()
author
William Pitcock
<nenolod@dereferenced.org>
Thu, 1 Nov 2018 07:52:58 +0000
(07:52 +0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Thu, 1 Nov 2018 07:52:58 +0000
(07:52 +0000)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index bb5b91c6136c2440e3fb2bf8e393a472fb411e20..f724f8a5b9a9feb6e15d06cb5f6c2bef8b6ef00e 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-295,6
+295,7
@@
defmodule Pleroma.User do
def invalidate_cache(user) do
Cachex.del(:user_cache, "ap_id:#{user.ap_id}")
Cachex.del(:user_cache, "nickname:#{user.nickname}")
+ Cachex.del(:user_cache, "user_info:#{user.id}")
end
def get_cached_by_ap_id(ap_id) do