Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
2c3bfd7f
Commit
2c3bfd7f
authored
Nov 01, 2018
by
kaniini
Browse files
user: delete user_info data in User.invalidate_cache()
parent
10f39584
Pipeline
#4218
passed with stages
in 5 minutes and 39 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
2c3bfd7f
...
...
@@ -295,6 +295,7 @@ def update_and_set_cache(changeset) 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment