I added CacheResponseMixin from drf extensions to my view, but only the first page is cached and returned for all other pages, for example. /? page = 2 just returns the results for page 1.
class ProductViewSet(CacheResponseMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin, viewsets.GenericViewSet):
queryset = Product.objects.filter(withdrawn=False)
serializer_class = ProductSerializer
pagination_class = LargeResultsSetPagination
I am using django 1.85. Is this a mistake, or am I missing something?
source
share