Manual/Purge
<languages /> <translate> Purging forces MediaWiki to clear the cached version of a given page, forcing the page to be redisplayed from its source or scripts to restart.</translate> <translate> It is used to ensure that recent changes are made immediately visible.</translate>
<translate> One way to purge a MediaWiki page is to click a page's <tvar name=1></tvar> tab, then in your browser's location field delete just the word <tvar name=2>history</tvar> off the end of the URL, type <tvar name=3>purge</tvar> (after the <tvar name=4>=</tvar>) on the end of the URL, and hit <tvar name=5></tvar>.</translate>
<translate> Your URL should look something like one of the ones below.</translate>
<translate>
Examples[edit]
- To purge a page, add <tvar name=purge>
?action=purge</tvar> to the URL of the page you are viewing.</translate> <translate> For example:</translate>
http://example.org/wiki/Main_Page?action=purge
<translate>
- If the URL has other parameters in its query string, add the purge action to the query string with an ampersand (<tvar name=1>&</tvar>).</translate> <translate> For example:</translate>
http://example.org/wiki/index.php?title=Main_Page&action=purge
<translate>
Requests must be confirmed[edit]
</translate> <translate> Purge requests made via POST are automatically filled.</translate> <translate> Users making purge requests via a query string will be presented with a confirmation form.</translate><ref>gerrit:304157</ref> <translate> This form must be submitted before the purge request will be completed.</translate> <translate> This behavior is a precaution to keep web spiders from accidentally purging pages when following links.</translate>
<translate>
Purge and image thumbnails[edit]
If purge is run on an image description page, the cached thumbnails for the image will be purged.
Categories[edit]
</translate>
<translate> If purge is run on a category with less than 5000 members, the category will be recounted from scratch (<tvar name=1>T85696</tvar>).
Null edits[edit]
</translate>
<translate> Purging will only update the rendering of the page, it won't update the link tables.</translate>
<translate> These tables control lists that the page is listed in (for example, pages listed on category pages, <tvar name=1>Special:Whatlinkshere</tvar>, along with several other <tvar name=2>query</tvar> special pages).</translate>
<translate> In order to force an update of the link tables, you can do what is called a null edit (or purge edit).</translate>
<translate> Click on <tvar name=1></tvar> and save without changing anything.</translate>
<translate> No entry in the page's history will appear, but all link tables and other derived data should be refreshed.</translate>
<translate> An alternative way to update the links table is to use the API's <tvar name=purge></tvar> module with the <tvar name=force>forcelinkupdate</tvar> option.</translate>
<translate> This however may not update other derived data, such as the search index or resource loader module cache.</translate>
which are created automatically to represent loggable actions in the page history.</translate> <translate> Dummy revisions are sometimes called "null revisions", but that should be avoided to prevent confusion.</translate>}}
<translate>
See also[edit]
</translate>
- - <translate> a command-line [[<tvar name=1>Special:MyLanguage/Manual:Maintenance scripts</tvar>|maintenance script]] that allows batch purging of articles.</translate>
- Require POST in ?action=purge
<translate>
References[edit]
</translate> <references/>
Sample content adapted from mediawikiwiki:Manual:Purge on mediawiki.org, licensed under CC BY-SA 4.0.