Skip to content

Commit

Permalink
Update user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo authored Mar 9, 2024
1 parent b59a8ff commit a0f158d
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 a0f158d

Please sign in to comment.