Jump to content

Manual:Purga

From mediawiki.org
This page is a translated version of the page Manual:Purge and the translation is 31% complete.

La purga obliga MediaWiki a esborrar la versió emmagatzemada a la memòria cau d'una pàgina determinada, obligant la pàgina a tornar a mostrar-se des del seu codi font o a reiniciar els scripts. S'utilitza per garantir que els canvis recents siguin visibles immediatament.

Una manera de purgar una pàgina MediaWiki és fer clic a la pestanya Mostra l'historial d'una pàgina, després, al camp d'ubicació del navegador, suprimir només la paraula history del final de l'URL, escriure purge (després del signe =) al final de l'URL i prémer ↵ Enter. El vostre URL hauria de tenir un aspecte semblant a un dels següents.

Exemples

  • Per purgar una pàgina, afegiu ?action=purge a l'URL de la pàgina que esteu visualitzant. Per exemple:
http://example.org/wiki/Main_Page?action=purge

Si l'URL té altres paràmetres a la cadena de consulta, afegiu l'acció de purga a la cadena de consulta amb un signe et (&). Per exemple:

http://example.org/wiki/index.php?title=Main_Page&action=purge
Recordeu canviar example.org a les URL anteriors pel nom d'amfitrió (host name) de la vostra instal·lació de MediaWiki.

Requests must be confirmed

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.

Purge and image thumbnails

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

Categories

MediaWiki version:
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).

Null edits

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 Modifica 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.

See also

References