Open grudelsud opened 7 years ago
Hi, I am also stuck in same situation. I have a get API but it is returning cached response even if I pass different value for query parameter. Did you get a solution for this?
I got a solution for this. Please check http://stackoverflow.com/questions/43101423/drf-extension-cache-ignoring-query-parameters/43113799#43113799
hi
I'm using a cache decorator for a list viewset as follows:
but the query string parameters seem to be ignored, e.g.
/api/values/
1st invocation caches result/api/values/?q=some
returns same result as above from cacheany suggestion to make this work? I understand I can specify a key_func on the cache_response arguments but I'm a bit lost in how to implement it and not sure it would solve the problem
thanks!