Made User::invalidateCache() use touch() instead of the DB query
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 8 Apr 2015 02:58:40 +0000 (19:58 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 8 Apr 2015 02:59:35 +0000 (19:59 -0700)
commit5b4bd1632755d973efcaa44a57ca6f2d4156df5a
treedd9b4a1755dd49f278d17a4b5ba08e62644ef94a
parent4665ea46651be9194b0435a50b981157dd7079f4
Made User::invalidateCache() use touch() instead of the DB query

* This method is used for clearing the User cache as well
  as bumping the value of getTouched() for HTTP 304 logic.
  These do not need to do the actual user_touched update.
* This also avoids problems with setting mTouched but
  deferring the update. That confused the CAS update
  logic since it expects mTouched to be in the DB.

Change-Id: I96b30f5c9c8b4714e6663b187f741954a13312cf
includes/User.php