Manual:$wgMiserMode/ru
<translate> Performance hacks and limits</translate>: $wgMiserMode | |
---|---|
Enable/disable database-intensive features |
|
<translate> Introduced in version:</translate> | pre 1.1.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (boolean) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Miser mode is a mode intended to reduce load on server farms running a large number of wikis. It is enabled on all WMF wikis.
Details
If true
, disable database-intensive features, so that they can be managed/controlled separately if desired.
This includes reading special pages marked as expensive from the cache instead of regenerating them every time they are requested.
With $wgMiserMode
set to true
, this means that the special pages managed by this flag will only be updated when explicitly made to update.
For example, setting up a cron-job to call /maintenance/updateSpecialPages.php
or using Extension:RefreshSpecial .
The other disabled features are...
- Disables custom formatting of change sizes in Special:RecentChanges via MediaWiki:Rc-change-size (r48986)
- Disables selecting all pages that start with x box on Special:Log (and
leprefix
option oflist=logevents
API module)
- Disables
aimime
andfamime
option in thelist=allimages
andlist=filearchive
API module. However Special:MIMESearch is allowed to work after gerrit:67468.
- Disables
showsizediff
option of the RSS feed for Special:Contributions
- In the
list=categorymembers
andlist=externallinks
API module, uses reduced sorting by namespace mode (returns only a few results whencmnamespace
orelnamespace
option is in use).
- Similarly disables the filter by namespace box on Special:LinkSearch
- Doesn't update number of active users on Special:Statistics quite as often (?)
- Disables the search for images with x somewhere in their name box on Special:NewImages and Special:ListFiles
- Do not show how many previous versions of an image were uploaded on Special:ListFiles
- When running rebuildrecentchanges.php maintenance script, will not re-auto-patrol edits by users with auto-patrol flag.
- When running updateCollation.php maintenance script, will not tell you how many rows in total there are to update.
Версия MediaWiki: | <translate> ≥</translate> 1.23 Gerrit change 109710 |
- Disables transclusion count on info action as of gerrit:109710.
<translate> MediaWiki versions:</translate> |
- Disables the
{{REVISIONID}}
magic word in content namespaces as defined with $wgContentNamespaces as of gerrit:294774.
It is substituted by a single dash after saving the page.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> MediaWiki version:</translate> |
- Disables the
{{REVISIONID}}
magic word in subject namespaces as of gerrit:570985.
It is substituted by a single dash after saving the page.
For reference, this very wiki uses miser mode.
You can tell if a wiki has miser mode enabled via the meta=siteinfo
API module.
update.php
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.18</tvar> is unsupported version</translate>">Версия MediaWiki: |
This configuration option disables update.php in 1.18.0 (and only 1.18.0. Subsequent releases will not use this option for that purpose), requiring one to use --force
to run that script.
Very very very large wikis (like Wikipedia) may need to have more careful upgrade process than the maintenance script does, but most sites would not have to worry about this.