From a0f158dc0202ba1e3c831f537e8c87477eb4f044 Mon Sep 17 00:00:00 2001 From: Jason Cameron Date: Fri, 8 Mar 2024 20:18:15 -0500 Subject: [PATCH] Update user.py --- gameserver/views/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameserver/views/user.py b/gameserver/views/user.py index 671393d..a629bb1 100644 --- a/gameserver/views/user.py +++ b/gameserver/views/user.py @@ -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):