'category' => array( 'LEFT JOIN', array(
'cat_title = page_title',
'page_namespace' => NS_CATEGORY
- ))
+ ) )
)
);
// 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 {