Manual:Purgação
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=purgeao 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
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
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.
forcelinkupdate to an index.php URL has no effect.
Ver também
- purgeList.php - a command-line maintenance script that allows batch purging of articles.
- Manual:Performance tuning#Page view caching
- Manual:Parâmetros ao index.php
- Extensão:Purge
- Manual:PurgeAction.php/pt-br
- Require POST in ?action=purge
- Help:Locating broken scripts