mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
Merge pull request #2399 from bookwyrm-social/cache-fix
Fixes user follow cache
This commit is contained in:
commit
d40cc21460
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def get_relationship(context, user_object):
|
||||||
"""caches the relationship between the logged in user and another user"""
|
"""caches the relationship between the logged in user and another user"""
|
||||||
user = context["request"].user
|
user = context["request"].user
|
||||||
return get_or_set(
|
return get_or_set(
|
||||||
f"relationship-{user.id}-{user_object.id}",
|
f"cached-relationship-{user.id}-{user_object.id}",
|
||||||
get_relationship_name,
|
get_relationship_name,
|
||||||
user,
|
user,
|
||||||
user_object,
|
user_object,
|
||||||
|
|
Loading…
Reference in a new issue