* $wgLicenseTerms has been removed as it was unused.
* $wgProfileOnly is now deprecated; set the log file in
$wgDebugLogGroups['profileoutput'] to replace it.
+* $wgMaxBacklinksInvalidate was removed; use $wgJobBackoffThrottling instead
=== New features in 1.23 ===
* ResourceLoader can utilize the Web Storage API to cache modules client-side.
*/
$wgUpdateRowsPerQuery = 100;
-/**
- * Do not purge all the pages that use a page when it is edited
- * if there are more than this many such pages. This is used to
- * avoid invalidating a large portion of the squid/parser cache.
- *
- * This setting should factor in any squid/parser cache expiry settings.
- */
-$wgMaxBacklinksInvalidate = false;
-
/** @} */ # End job queue }
/************************************************************************//**
}
function run() {
- global $wgUpdateRowsPerJob, $wgUpdateRowsPerQuery, $wgMaxBacklinksInvalidate;
+ global $wgUpdateRowsPerJob, $wgUpdateRowsPerQuery;
static $expected = array( 'recursive', 'pages' ); // new jobs have one of these
// Job to purge all (or a range of) backlink pages for a page
if ( !empty( $this->params['recursive'] ) ) {
- // @TODO: try to use delayed jobs if possible?
- if ( !isset( $this->params['range'] ) && $wgMaxBacklinksInvalidate !== false ) {
- $numRows = $this->title->getBacklinkCache()->getNumLinks(
- $this->params['table'], $wgMaxBacklinksInvalidate );
- if ( $numRows > $wgMaxBacklinksInvalidate ) {
- return true;
- }
- }
// Convert this into no more than $wgUpdateRowsPerJob HTMLCacheUpdateJob per-title
// jobs and possibly a recursive HTMLCacheUpdateJob job for the rest of the backlinks
$jobs = BacklinkJobUtils::partitionBacklinkJob(