36 if ( $dbkeys === [] ) {
44 function () use ( $dbw, $namespace, $dbkeys,
$fname ) {
45 $services = MediaWikiServices::getInstance();
46 $lbFactory =
$services->getDBLoadBalancerFactory();
55 'page_namespace' => $namespace,
56 'page_title' => $dbkeys,
57 'page_touched < ' . $dbw->
addQuotes( $now )
66 $batchSize =
$services->getMainConfig()->get(
'UpdateRowsPerQuery' );
67 $ticket = $lbFactory->getEmptyTransactionTicket(
$fname );
69 foreach ( $idBatches as $idBatch ) {
72 [
'page_touched' => $now ],
74 'page_id' => $idBatch,
75 'page_touched < ' . $dbw->
addQuotes( $now )
79 if ( count( $idBatches ) > 1 ) {
80 $lbFactory->commitAndWaitForReplication(
$fname, $ticket );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
if(defined( 'MW_SETUP_CALLBACK')) $fname
Customization point after all loading (constants, functions, classes, DefaultSettings,...
Deferrable Update for closure/callback updates that should use auto-commit mode.
static invalidatePages(IDatabase $dbw, $namespace, array $dbkeys)
Invalidate the cache of a list of pages from a single namespace.
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array $services
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))