dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c732764
)
Move category refreshes to a deferred update
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 30 Dec 2015 04:22:54 +0000
(20:22 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 30 Dec 2015 04:22:54 +0000
(20:22 -0800)
Bug: T92357
Change-Id: Ic0d53c0ca01195cc5dd1f5a28602b3d4403e9fa5
includes/CategoryViewer.php
patch
|
blob
|
history
diff --git
a/includes/CategoryViewer.php
b/includes/CategoryViewer.php
index
e2c31a6
..
2ceeed2
100644
(file)
--- 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 )->onTransactionIdl
e( function () use ( $category ) {
+
DeferredUpdates::addCallableUpdat
e( function () use ( $category ) {
$category->refreshCounts();
} );
} else {