Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Users Currently Online
The query took over 4 seconds. You should drop the timeout to a lower value (300 or lower). After doing this, check the tag trace to see how long the query took. I suspect that the UNIX_TIMESTAMP(time) is slowing things down. I will look in to optimizing the query a little bit more and possible adding a table index to make it run faster. I am also going to add to my todo list, the ability to have it cache the result for a configurable amount of time, instead of calculating every page load.
Offline
Re: Users Currently Online
Okay, I made a small change that should speed things up a little bit. Download 0.3 and give that a go.
Changes:
- timeout arg defaults to 300 instead of 600
- No longer using UNIX_TIMESTAMP
Offline