Manual:PurgePage.php/pt-br

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:PurgePage.php and the translation is 7% complete.
Other languages:
English • ‎polski • ‎português do Brasil • ‎日本語

Details

purgePage.php file is a maintenance script to purge both internal and external caches.

This is the equivalent to action=purge (tarefa T169195) and performs the following actions:

  • Re-parses the wikitext, saves changes to the database (e.g. current expansion of magic words and templates, writes links to the database for images, links-here, categories etc.).
  • Performs a database write for page.page_touched to the current time, which has potential cascading effects to other areas of the application.
  • Purges the page's canonical URLs from File cache ($wgUseFileCache ) and/or from external Squid/Varnish proxy (this is the part that purgeList.php does).
  • In addition, individual page types (such as FilePage) and extensions, may register additional actions. For example, when purging a File page, it also deletes thumbnails from Swift storage, and purge the URLs of all thumbnail sizes and variations (page1, page2, 120px, 320px etc. etc.)
Atenção Atenção: Se estiver usando cache de arquivos, é importante executar esse script como o mesmo usuário que o mediawiki (ou seu servidor da web) executa. Caso contrário, o script pode não ter direitos de sistema de arquivos para excluir entradas do cache de arquivos


Syntax

Give a list of page titles to purge, one per line, from standard input:

php purgePage.php
Page 1
PURGED
Page 2
PURGED
Page 3
PURGED

Give a list of page titles to purge, one per line, from a file:

php purgePage.php < purge.txt

where purge.txt contains a list of pagenames to be regenerated.

See also