projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4338d
)
Run
author
Zachary Dunn
<zdunn76@gmail.com>
Mon, 18 Mar 2019 14:53:30 +0000
(14:53 +0000)
committer
Zachary Dunn
<zdunn76@gmail.com>
Mon, 18 Mar 2019 14:53:30 +0000
(14:53 +0000)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index dcc03ae950869ca402c5d6a6607d310a00384a9c..a29f836bee8c8d61a5ad69531a3c2df33891637b 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-492,6
+492,7
@@
defmodule Pleroma.User do
def get_cached_by_nickname(nickname) do
key = "nickname:#{nickname}"
+
Cachex.fetch!(:user_cache, key, fn ->
user_result = get_or_fetch_by_nickname(nickname)