r89461 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89460‎ | r89461 | r89462 >
Date:11:31, 4 June 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
* (bug 29265) Mediawiki API documentation incomplete

Flesh out documentation for the maxlag parameter
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -752,7 +752,14 @@
753753 'format' => 'The format of the output',
754754 'action' => 'What action you would like to perform. See below for module help',
755755 'version' => 'When showing help, include version for each module',
756 - 'maxlag' => 'Maximum lag',
 756+ 'maxlag' => array(
 757+ 'Maximum lag can be used when MediaWiki is installed on a database replicated cluster.',
 758+ 'To save actions causing any more site replication lag, this parameter can make the client',
 759+ 'wait until the replication lag is less than the specified value.',
 760+ 'In case of a replag error, a HTTP 503 error is returned, with the message like',
 761+ '"Waiting for $host: $lag seconds lagged\n".',
 762+ 'See http://www.mediawiki.org/wiki/Manual:Maxlag_parameter for more information',
 763+ ),
757764 'smaxage' => 'Set the s-maxage header to this many seconds. Errors are never cached',
758765 'maxage' => 'Set the max-age header to this many seconds. Errors are never cached',
759766 'requestid' => 'Request ID to distinguish requests. This will just be output back to you',

Follow-up revisions

RevisionCommit summaryAuthorDate
r89505* (bug 29265) Mediawiki API documentation incomplete...reedy15:10, 5 June 2011

Comments

#Comment by Krinkle (talk | contribs)   15:30, 4 June 2011

Hm.. after this the $host: $ part is bold and italic. Intentional ?

#Comment by Reedy (talk | contribs)   17:13, 4 June 2011

Nope, but the formatting does it itself for whatever reason.

If you do api.php?version you will see it does the same thing there

No big deal

Status & tagging log