From: Aaron Schulz Date: Wed, 30 Dec 2015 04:22:54 +0000 (-0800) Subject: Move category refreshes to a deferred update X-Git-Tag: 1.31.0-rc.0~8437^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=43118240b5751ceb411d847dd32f4bff1fb9a137;p=lhc%2Fweb%2Fwiklou.git Move category refreshes to a deferred update Bug: T92357 Change-Id: Ic0d53c0ca01195cc5dd1f5a28602b3d4403e9fa5 --- diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index e2c31a66ff..2ceeed2795 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -713,7 +713,7 @@ class CategoryViewer extends ContextSource { // 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 {