Jump to content

Manual:Purgação

From mediawiki.org
This page is a translated version of the page Manual:Purge and the translation is 40% complete.
Outdated translations are marked like this.

O ato de purgar significa ao MediaWiki limpar a versão em cache de uma determinada página, obrigando seu recarregamento e o reinício de seus scripts. Ele é utilizado para garantir que mudanças recentes tornem-se visíveis imediatamente.

Uma forma de purgar uma página no MediaWiki é clicar em sua aba “Ver histórico” e, no novo valor do URL no campo de endereço do seu navegador, apagar a palavra history, substituí-la por purge (ou seja, após o =) e pressionar Enter. Seu URL deverá estar parecendo como os explicitados abaixo.

Exemplos

  • Para purgar uma página, adicione ?action=purge ao URL da página desejada. Por exemplo:
http://example.org/wiki/Main_Page?action=purge
  • Se o URL possuir outros parâmetros de consulta, adicione a ação de purgar após um e comercial (&). Por exemplo:
http://example.org/wiki/index.php?title=Main_Page&action=purge
Nos URLs acima, lembre-se de substituir example.org pelo hostname da sua instalação do MediaWiki.

Requisições devem ser confirmadas

Purge requests made via POST are automatically filled. Users making purge requests via a query string will be presented with a confirmation form.[1] This form must be submitted before the purge request will be completed. This behavior is a precaution to keep web spiders from accidentally purging pages when following links.

Purgação e miniaturas de imagens

If purge is run on an image description page, the cached thumbnails for the image will be purged.

Categories

Versão do MediaWiki:
1.38
Gerrit change 756107

If purge is run on a category with less than 5000 members, the category will be recounted from scratch (T85696).

Edições nulas

See also: Help:Null edit

Purging will only update the rendering of the page, it won't update the link tables. These tables control lists that the page is listed in (for example, pages listed on category pages, Special:Whatlinkshere, along with several other query special pages). In order to force an update of the link tables, you can do what is called a null edit (or purge edit). Click on Editar and save without changing anything. No entry in the page's history will appear, but all link tables and other derived data should be refreshed.

An alternative way to update the links table is to use the API's purge module with the forcelinkupdate option. This however may not update other derived data, such as the search index or resource loader module cache.

This option only applies to the API. Adding forcelinkupdate to an index.php URL has no effect.
Null edits are distinct from dummy revisions which are created automatically to represent loggable actions in the page history. Dummy revisions are sometimes called "null revisions", but that should be avoided to prevent confusion.

Ver também

References