From d365595e3d98c11d2e6825cd8761b9f13a9bfe7c Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 25 Jul 2018 06:33:20 +0000 Subject: [PATCH] Looks like chrome cant handle servers with 2,000 messages from our cache --- webapp/titanembeds/redisqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/redisqueue.py b/webapp/titanembeds/redisqueue.py index 52556d7..e74da3e 100644 --- a/webapp/titanembeds/redisqueue.py +++ b/webapp/titanembeds/redisqueue.py @@ -85,7 +85,7 @@ class RedisQueue: mention["discriminator"] = author["discriminator"] msgs.append(message) sorted_msgs = sorted(msgs, key=lambda k: k['id'], reverse=True) - return sorted_msgs + return sorted_msgs[:50] # only return last 50 messages in cache please def get_guild_member(self, guild_id, user_id): key = "/guilds/{}/members/{}".format(guild_id, user_id)