Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Adding examples and documentation for caching#5514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The default caching system of Django works very well with DRF. However, the usage is not very easy to understand for class based views as the documentation is spread across pages. This pull-request provides example code on how to use caching with apiviews and viewsets.
carltongibson left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for this. I will give it a proper review tomorrow AM.
(I think there may be some long standing issues related to this... I need to have a look)
carltongibson commentedOct 20, 2017
@pratyushmittal It turns out the issue was#370 — ourvery oldest open issue! So you get a big cheer for that: 🎉💃🏼🎇 This is a good beginning to a caching page. No doubt people will follow-up with more but this is what we need to get started. Awesome! Thank you! |
pratyushmittal commentedOct 23, 2017
Thanks a lot@carltongibson for a super quick review, merge and appreciation :-) |
Uh oh!
There was an error while loading.Please reload this page.
The default caching system of Django works very well with DRF. However, the usage is not very easy to understand for class based views as the documentation is spread across pages. This pull-request provides example code on how to use caching with
apiviewsandviewsets.(Edit:@carltongibson:Closes#370)