Fixes user follow cache

This commit is contained in:
Mouse Reeve 2022-11-17 11:23:48 -08:00
parent 24f73f81f6
commit 6dd671ae5a

View file

@ -42,7 +42,7 @@ def get_relationship(context, user_object):
"""caches the relationship between the logged in user and another user"""
user = context["request"].user
return get_or_set(
f"relationship-{user.id}-{user_object.id}",
f"cached-relationship-{user.id}-{user_object.id}",
get_relationship_name,
user,
user_object,