Topic: set_default_user()

Many users don't login... Wouldn't it be good to cache the information gathered in function set_default_user()? I mean: cache the guest information ($pun_user) and run the rest of the script as usual. If the forum is big this would make a difference, wouldn't it?

Re: set_default_user()

$pun_user is not the same for all guest users. In addition, it fetches from the online table on every pageview in that query because the value in the table changes every pageview. You can't just eliminate the query.