If I'm not mistaken, every time the session_api_get_session is called, and a session id is found in the database, the function will update the row. For many sites, this means every single page load...

A solution would be to check to see the last time the row was updated, and only update if it's older than x amount of time.

I'm building on a patch I hope will get committed here: http://drupal.org/node/1058960#comment-5334132 since this patch uses the new timestamp column that this patch adds. Patch to follow in a comment.

Comments

jessehs’s picture

Here's a patch against the patched version of 6.x-1.x DEV mentioned above. I've also included a patch against the current 6.x-1.x DEV release that combines the two patches into one, for convenience of testing.

EDIT: Sorry about the typo in the patch filenames... :-(
I mean't 1364416, instead of 1364414...

a.ross’s picture

Issue summary: View changes
Status: Active » Closed (outdated)