Increase the usermessage cache to 50000 messages.

(imported from commit 3b937a45339c8ab68fe07901518df1b97885afd3)
This commit is contained in:
Tim Abbott 2013-01-17 13:12:27 -05:00
parent 3e928cec48
commit d4ad38882d
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ user_messages = {}
# we're running within tornado, we don't want to have to do a database # we're running within tornado, we don't want to have to do a database
# lookup to find the matching entry in this table. # lookup to find the matching entry in this table.
stream_messages = {} stream_messages = {}
USERMESSAGE_CACHE_COUNT = 25000 USERMESSAGE_CACHE_COUNT = 50000
STREAMMESSAGE_CACHE_COUNT = 5000 STREAMMESSAGE_CACHE_COUNT = 5000
cache_minimum_id = sys.maxint cache_minimum_id = sys.maxint
def initialize_user_messages(): def initialize_user_messages():