From c670a3183643c52fc27ac37717b7a4f1682a25de Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:46:44 +0530 Subject: [PATCH] fix: remove caching when joining workspace (#4192) --- apiserver/plane/app/views/workspace/invite.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apiserver/plane/app/views/workspace/invite.py b/apiserver/plane/app/views/workspace/invite.py index 0b6f03e8a..846d7b0b6 100644 --- a/apiserver/plane/app/views/workspace/invite.py +++ b/apiserver/plane/app/views/workspace/invite.py @@ -170,6 +170,12 @@ class WorkspaceJoinEndpoint(BaseAPIView): @invalidate_cache(path="/api/workspaces/", user=False) @invalidate_cache(path="/api/users/me/workspaces/") + @invalidate_cache( + path="/api/workspaces/:slug/members/", + user=False, + multiple=True, + url_params=True, + ) def post(self, request, slug, pk): workspace_invite = WorkspaceMemberInvite.objects.get( pk=pk, workspace__slug=slug