mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
bust membership cache
This commit is contained in:
parent
80ad21deeb
commit
82422c06c6
2 changed files with 2 additions and 2 deletions
|
@ -529,7 +529,7 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
|
||||||
member = CommunityMember(user_id=user.id, community_id=community.id)
|
member = CommunityMember(user_id=user.id, community_id=community.id)
|
||||||
db.session.add(member)
|
db.session.add(member)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
cache.delete_memoized(community_membership, user, community)
|
cache.delete_memoized('community_membership', user, community)
|
||||||
# send accept message to acknowledge the follow
|
# send accept message to acknowledge the follow
|
||||||
accept = {
|
accept = {
|
||||||
"@context": default_context(),
|
"@context": default_context(),
|
||||||
|
|
|
@ -285,7 +285,7 @@ def unsubscribe(actor):
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
flash('You are unsubscribed from ' + community.title)
|
flash('You are unsubscribed from ' + community.title)
|
||||||
cache.delete_memoized(community_membership, current_user, community)
|
cache.delete_memoized('community_membership', current_user, community)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# todo: community deletion
|
# todo: community deletion
|
||||||
|
|
Loading…
Add table
Reference in a new issue