Just something that I was thinking about - how often to check for new messages/notifications.

A fixed rate may be too much for busy sites where a constant refresh rate would be a bot high especially if people leave their web browsers open... so I was thinking one thaty decayed over time.

Something like:

Upon page first opening or new message notification being shown: refresh = 10 seconds.
Every other time while refresh is less than say 600 seconds: refresh = refresh + 10 seconds.

Good idea?

Comments

Dave.Ingram’s picture

Makes sense. Should be a fairly simple patch.. just a check box in the settings to turn on decay... I guess making that configurable beyond a checkbox is overkill? ...then pass that flag along to the JS and add the logic to the counter. Glad to review any patches, or I'll look and working on this myself when I get the time.