Skip to content

Commit

Permalink
fix: remove user workspace cache on account deactivation (makeplane#5065
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pablohashescobar authored Jul 8, 2024
1 parent d8d4764 commit 1cd55cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apiserver/plane/app/views/user/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def partial_update(self, request, *args, **kwargs):
return super().partial_update(request, *args, **kwargs)

@invalidate_cache(path="/api/users/me/")
@invalidate_cache(
path="/api/users/me/workspaces/", multiple=True, user=False
)
def deactivate(self, request):
# Check all workspace user is active
user = self.get_object()
Expand Down

0 comments on commit 1cd55cd

Please sign in to comment.