jenkins-bot has submitted this change and it was merged. Change subject: Switched to using User::touch() to avoid DB write spam ......................................................................
Switched to using User::touch() to avoid DB write spam Bug: T92357 Change-Id: I442de51ef358b2ccfda0a58978c0659f8cae4859 --- M includes/CentralAuthHooks.php 1 file changed, 1 insertion(+), 3 deletions(-) Approvals: CSteipp: Looks good to me, but someone else must approve Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/CentralAuthHooks.php b/includes/CentralAuthHooks.php index 28877fb..9acb208 100644 --- a/includes/CentralAuthHooks.php +++ b/includes/CentralAuthHooks.php @@ -1022,9 +1022,7 @@ wfSetupSession(); if ( $token != @$_SESSION['globalloggedin'] ) { // FIXME: Usage of @ $_SESSION['globalloggedin'] = $token; - if ( !wfReadOnly() ) { - $user->invalidateCache(); - } + $user->touch(); wfDebug( __METHOD__ . ": Initialising session for $userName with token $token.\n" ); } else { wfDebug( __METHOD__ . ": Session already initialised for $userName with token $token.\n" ); -- To view, visit https://gerrit.wikimedia.org/r/199826 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I442de51ef358b2ccfda0a58978c0659f8cae4859 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralAuth Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: CSteipp <cste...@wikimedia.org> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits