View Issue Details

IDProjectCategoryView StatusLast Update
0002001Composrchatpublic2016-02-07 14:36
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0002001: Make chat message back-log configurable
DescriptionWe have
        define('CHAT_BACKLOG_TIME',60*5); // 5 minutes of messages if you enter an existing room


Make it a config option.
TagsNo tags attached.
Time estimation (hours)0.5
Sponsorship open

Activities

Chris Graham

2015-07-23 18:26

administrator   ~0002980

Actually this doesn't seem true. The code has ", 20" in it (",20" in v10), which is a maximum number of messages to show.

This should be a config option too.

I think the backlog-time is actually completely ignored. We need to decide whether to just remove that, or implement both options. I verge on just having the static number, as it is safer performance-wise, and I don't think limiting by date is actually that useful (so what if old stuff shows? the maximum quantity is what matters).

Patrick Schmalstig

2016-02-07 01:21

administrator   ~0003311

so what if old stuff shows? the maximum quantity is what matters

I agree strongly with this. Even if you set it to say, one day, if say a chat room exploded with activity within the last 24 hours, that'll be a big performance hit as the chat loads all those messages.

Chris Graham

2016-02-07 14:36

administrator   ~0003315

This issue is rather confused, reflecting the confusion in the code.

It is now as you want. There's a "Chat messages to show" option, and it's not time based.

Issue History

Date Modified Username Field Change