jenkins-bot has submitted this change and it was merged.

Change subject: Move category refreshes to a deferred update
......................................................................


Move category refreshes to a deferred update

Bug: T92357
Change-Id: Ic0d53c0ca01195cc5dd1f5a28602b3d4403e9fa5
---
M includes/CategoryViewer.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php
index e2c31a6..2ceeed2 100644
--- a/includes/CategoryViewer.php
+++ b/includes/CategoryViewer.php
@@ -713,7 +713,7 @@
                        // quick due to the small number of entries.
                        $totalcnt = $rescnt;
                        $category = $this->cat;
-                       wfGetDB( DB_MASTER )->onTransactionIdle( function () 
use ( $category ) {
+                       DeferredUpdates::addCallableUpdate( function () use ( 
$category ) {
                                $category->refreshCounts();
                        } );
                } else {

-- 
To view, visit https://gerrit.wikimedia.org/r/261615
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic0d53c0ca01195cc5dd1f5a28602b3d4403e9fa5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to