Reputation: 299
I'm googling a lot to find out what Django Rest Framework can do with Cache. Since now, all I got was this page
http://django-rest-framework.org/api-guide/throttling.html
telling me nothing about their policy.
My needs with the API are simple: keep all their features, and apply cache when nothing has changed. When something changes in DB, have a mechanism to invalidate proper cache pages.
For example:
If I have list and detail views of models AB, through an API with authentication and throttling, I want to:
So, all I need is to know how django rest framework create keys, and which is the point they cache it to have the control of cache policy.
Any clues?
Upvotes: 12
Views: 7980
Reputation: 2084
Even if the question is not new, maybe this is worth a look: https://chibisov.github.io/drf-extensions/docs/#caching
Upvotes: 6