How to cache Django Rest Framework API calls?
How to cache Django Rest Framework API calls? Question: I’m using Memcached as backend to my django app. This code works fine in normal django query: def get_myobj(): cache_key = ‘mykey’ result = cache.get(cache_key, None) if not result: result = Product.objects.all().filter(draft=False) cache.set(cache_key, result) return result But it doesn’t work when used with django-rest-framework api calls: …