Set cache of get guild channels to lower, 1 min

This commit is contained in:
Jeremy Zhang 2017-04-09 15:02:53 -07:00
parent e342a44c26
commit 674c98b100

View File

@ -106,7 +106,7 @@ def format_post_content(message):
message = "**<{}#{}>** {}".format(session['username'], session['discriminator'], message) # I would like to do a @ mention, but i am worried about notif spam
return message
@cache.cached(timeout=300, key_prefix=make_guildchannels_cache_key)
@cache.cached(timeout=60, key_prefix=make_guildchannels_cache_key)
def get_guild_channels(guild_id):
if user_unauthenticated():
member_roles = [guild_id] #equivilant to @everyone role