Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
Increase the view caching times from 4m to 6h
Browse files Browse the repository at this point in the history
Since the homepage is slow we can afford to cache the data which
produces it for a few hours. It’s a form of statistic and if it’s a few
hours behind, that’ll be acceptable.
  • Loading branch information
mitio committed Oct 12, 2016
1 parent 2d68bb7 commit d72f604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CachedListAPIView(generics.ListAPIView):
"""
Concrete cached view for listing a queryset.
"""
@cache_response(timeout=240, key_func='calculate_cache_key')
@cache_response(timeout=21600, key_func='calculate_cache_key')
def get(self, request, *args, **kwargs):
return self.list(request, *args, **kwargs)

Expand Down

0 comments on commit d72f604

Please sign in to comment.