user: Move idFromName cache truncation to before adding the new value
authorAlexia E. Smith <washuu@gmail.com>
Fri, 14 Jun 2019 17:40:54 +0000 (12:40 -0500)
committerKrinkle <krinklemail@gmail.com>
Fri, 14 Jun 2019 18:05:26 +0000 (18:05 +0000)
commitaa9bbc47c3b043479aba45ab8e76b663826b780f
tree58133e518d504958c01d14db7439a123636897f1
parent61544d6eb235342d004a2fefc159167f28c69099
user: Move idFromName cache truncation to before adding the new value

This prevents a double query for the same User::idFromName() call
twice in a row.

Bug: T225843
Change-Id: I5beb0a3ad5e715b68dd8a450408fb089184fa6ce
includes/user/User.php