Skip to content

Commit

Permalink
remove caching from lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo committed Oct 7, 2024
1 parent 40b60b8 commit 3a4a31d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion accounts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ class AccountUpvotedListsAPI(APIView, CustomSizePageNumberPagination):
500: OpenApiResponse(description="Internal server error"),
},
)
@method_decorator(cache_page(60 * 5))
def get(self, request: Request, *args, **kwargs):
account_id = kwargs.get("account_id")
try:
Expand Down
4 changes: 2 additions & 2 deletions lists/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ListsListAPI(APIView, CustomSizePageNumberPagination):
500: OpenApiResponse(description="Internal server error"),
},
)
@method_decorator(cache_page(60 * 5))
@method_decorator(cache_page(60 * 1))
def get(self, request: Request, *args, **kwargs):
lists = List.objects.all()
account_id = request.query_params.get("account")
Expand Down Expand Up @@ -152,7 +152,7 @@ class ListRegistrationsAPI(APIView, CustomSizePageNumberPagination):
500: OpenApiResponse(description="Internal server error"),
},
)
@method_decorator(cache_page(60 * 5))
@method_decorator(cache_page(60 * 1))
def get(self, request: Request, *args, **kwargs):
list_id = kwargs.get("list_id")
try:
Expand Down

0 comments on commit 3a4a31d

Please sign in to comment.