|
Re: Interesting little problem. [message #12925 is a reply to message #12830] |
Thu, 18 September 2003 14:53 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Online status on the front page is cached. You can control for how long (by default 5 minutes) via admin control panel. The 'show what people are doing' on the other hand shows the 'live' data.
FUDforum Core Developer
|
|
|
|
Re: Interesting little problem. [message #12960 is a reply to message #12943] |
Thu, 18 September 2003 16:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The logic is far more complex then your example indicates. Basically there is a special table containing the cached values. If the data in that table is older then what your cache limit it set to, the values in that table are rebuilt. If the cached data is not too old, then the values from the cache table are used.
FUDforum Core Developer
|
|
|
|
|
|
Re: Interesting little problem. [message #12985 is a reply to message #12984] |
Thu, 18 September 2003 18:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Your way is much slower. Because 1) range query are do not get optimized 2) you end up doing a lot of work realtime, which in current approach is cached. That said, you can safely tune the cache down to 1 minute or so.
FUDforum Core Developer
|
|
|
|