Skip to content

Commit

Permalink
disable cache on _get per issue #30
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer committed Aug 13, 2023
1 parent ed96cf3 commit a5f32af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/drf_chunked_upload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from rest_framework import status

from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page

from drf_chunked_upload import settings as _settings
from drf_chunked_upload.models import ChunkedUpload
Expand Down Expand Up @@ -262,6 +264,7 @@ def _post(self, request, pk=None, *args, **kwargs) -> Response:

return self.on_completion(chunked_upload, request)

@method_decorator(cache_page(0))
def _get(self, request, pk=None, *args, **kwargs):
if pk:
return self.retrieve(request, pk=pk, *args, **kwargs)
Expand Down

0 comments on commit a5f32af

Please sign in to comment.