If you want to confirm when this query is being run, just add:
To the line above:
Code:
$DB_site->shutdown_query("
UPDATE " . TABLE_PREFIX . "session
Before you install this hack you'd see a dot in the top left hand corner of every page... but after you install this hack you'll only see the dot when you browse to new pages... click refresh on a page and the dot disappears.
Which means the query on the line after it disappears too.
This hack is pretty neat and will help to shave this unneeded query. If you have a large board 200+ users online the it's a good hack to install.
And no, it doesn't add queries anywhere
Whilst TrigunFlame is on a roll we should point him towards the index page to see if he can miraculously find some way of improving that too... I'm down to 0.06 seconds generate time... but I know it can be lower