chibisov / drf-extensions

DRF-extensions is a collection of custom extensions for Django REST Framework
http://chibisov.github.io/drf-extensions/docs
MIT License
1.47k stars 208 forks source link

DRF caching works for specific IP only #149

Closed tevinjoseph closed 8 years ago

tevinjoseph commented 8 years ago

I have cached my Django views using Memcached. The caching works fine when requests come from a particular IP but it directly hit database when requests made from other IPs.

I'm currently using Django Rest Framework and for caching I use: http://chibisov.github.io/drf-extensions/docs/#caching

What I need is I want to cache API results regardless of the IP.

I have asked the question in stackoverflow: http://stackoverflow.com/questions/37269562/drf-caching-works-for-specific-ip-only