It does a user load then checks the two variables seeing if it needs that information

user_load is not cached (specially with the array access syntax), so doing a db_query for the two pieces of information directly may be better performance (The reason to call full user_load is in case anyone wants to alter the values -- what's the chance another contrib wants to change access/login timestamp on 'load'?)

Comments

deekayen’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Fixed

Fixed in 7.x-dev.

deekayen’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • deekayen committed d414f21 on 7.x-1.x, 8.x-1.x
    Issue #1860366 by hefox, deekayen: minimize calls to user_load().