enable cachettl

This commit is contained in:
Chneemann 2024-08-25 16:36:40 +02:00
parent 7ba48b17d1
commit adaed94ff7

View file

@ -17,7 +17,7 @@ CACHETTL = getattr(settings, 'CACHE_TTL', DEFAULT_TIMEOUT)
# Create your views here.
@api_view(['GET'])
@permission_classes([IsAuthenticated])
#@cache_page(CACHETTL)
@cache_page(CACHETTL)
def video_list(request):
"""
List all videos.