Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Mar 9, 2024
2 parents 4f97111 + a0f158d commit ef17b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gameserver/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_queryset(self):
queryset = cache.get(cache_key)
if not queryset or self.request.GET.get('cache_reset', '').casefold() == "yaaaa":
queryset = models.User.ranks()
cache.set(cache_key, queryset, 5 * 5) # Cache for 5 minutes (300 seconds)
cache.set(cache_key, queryset, 10 * 60) # Cache for 10 minutes (600 seconds)
return queryset

def get(self, request, *args, **kwargs):
Expand Down

0 comments on commit ef17b1d

Please sign in to comment.