Fix User::idFromName() ignoring cache for non-existent users.
authorAlexia E. Smith <washuu@gmail.com>
Thu, 15 Mar 2018 15:24:21 +0000 (10:24 -0500)
committerThiemo Kreuz (WMDE) <thiemo.kreuz@wikimedia.de>
Fri, 16 Mar 2018 12:10:40 +0000 (12:10 +0000)
commit33e0a539b8b90ec8a667fda1ae31d1103b0ba460
treeedfcc87c7954132b3dabe3cdd9904dcc1d06ffa0
parentecfadf249dad1b80d191c0b2804c2b08087c0850
Fix User::idFromName() ignoring cache for non-existent users.

This fixes a database time out issue where User::idFromName()
is repeatedly called from Special:Import due to the user not existing.
The response is cached as null, but isset() will return false on a null key.

Bug: T189786
Change-Id: I78705089a25dfec84d3c75bedaf623b1e5ee82c4
includes/user/User.php