Skip to content

Commit

Permalink
Update caching.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 23, 2024
1 parent 54086c1 commit 0bb909b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/api-guide/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ from rest_framework.response import Response

@cache_page(60 * 15)
@vary_on_cookie
@api_view(['GET'])
@api_view(["GET"])
def get_user_list(request):
content = {
'user_feed': request.user.get_user_feed()
}
content = {"user_feed": request.user.get_user_feed()}
return Response(content)
```

Expand Down

0 comments on commit 0bb909b

Please sign in to comment.