diff --git a/apiserver/plane/app/views/workspace/base.py b/apiserver/plane/app/views/workspace/base.py index 459666291..1ff863d13 100644 --- a/apiserver/plane/app/views/workspace/base.py +++ b/apiserver/plane/app/views/workspace/base.py @@ -151,8 +151,8 @@ class WorkSpaceViewSet(BaseViewSet): return super().partial_update(request, *args, **kwargs) @invalidate_cache(path="/api/workspaces/", user=False) - @invalidate_cache(path="/api/users/me/workspaces/") - @invalidate_cache(path="/api/users/me/settings/") + @invalidate_cache(path="/api/users/me/workspaces/", multiple=True) + @invalidate_cache(path="/api/users/me/settings/", multiple=True) def destroy(self, request, *args, **kwargs): return super().destroy(request, *args, **kwargs) diff --git a/apiserver/plane/app/views/workspace/invite.py b/apiserver/plane/app/views/workspace/invite.py index 846d7b0b6..d3511a865 100644 --- a/apiserver/plane/app/views/workspace/invite.py +++ b/apiserver/plane/app/views/workspace/invite.py @@ -169,13 +169,14 @@ class WorkspaceJoinEndpoint(BaseAPIView): """Invitation response endpoint the user can respond to the invitation""" @invalidate_cache(path="/api/workspaces/", user=False) - @invalidate_cache(path="/api/users/me/workspaces/") + @invalidate_cache(path="/api/users/me/workspaces/", multiple=True) @invalidate_cache( path="/api/workspaces/:slug/members/", user=False, multiple=True, url_params=True, ) + @invalidate_cache(path="/api/users/me/settings/", multiple=True) def post(self, request, slug, pk): workspace_invite = WorkspaceMemberInvite.objects.get( pk=pk, workspace__slug=slug @@ -273,7 +274,7 @@ class UserWorkspaceInvitationsViewSet(BaseViewSet): ) @invalidate_cache(path="/api/workspaces/", user=False) - @invalidate_cache(path="/api/users/me/workspaces/") + @invalidate_cache(path="/api/users/me/workspaces/", multiple=True) def create(self, request): invitations = request.data.get("invitations", []) workspace_invitations = WorkspaceMemberInvite.objects.filter( diff --git a/apiserver/plane/app/views/workspace/member.py b/apiserver/plane/app/views/workspace/member.py index 6ea2b3f20..39b2f3d98 100644 --- a/apiserver/plane/app/views/workspace/member.py +++ b/apiserver/plane/app/views/workspace/member.py @@ -155,7 +155,7 @@ class WorkSpaceMemberViewSet(BaseViewSet): user=False, multiple=True, ) - @invalidate_cache(path="/api/users/me/settings/") + @invalidate_cache(path="/api/users/me/settings/", multiple=True) @invalidate_cache( path="/api/users/me/workspaces/", user=False, multiple=True )