bust membership cache

This commit is contained in:
rimu 2024-01-04 16:59:15 +13:00
parent 80ad21deeb
commit 82422c06c6
2 changed files with 2 additions and 2 deletions

View file

@ -529,7 +529,7 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
member = CommunityMember(user_id=user.id, community_id=community.id)
db.session.add(member)
db.session.commit()
cache.delete_memoized(community_membership, user, community)
cache.delete_memoized('community_membership', user, community)
# send accept message to acknowledge the follow
accept = {
"@context": default_context(),

View file

@ -285,7 +285,7 @@ def unsubscribe(actor):
db.session.commit()
flash('You are unsubscribed from ' + community.title)
cache.delete_memoized(community_membership, current_user, community)
cache.delete_memoized('community_membership', current_user, community)
else:
# todo: community deletion