Open main menu

Extension:Purge

This page is a translated version of the page Extension:Purge and the translation is 15% complete.
Other languages:
English • ‎español • ‎polski • ‎português • ‎português do Brasil • ‎српски / srpski • ‎中文 • ‎日本語
Manual de extensões do MediaWiki
OOjs UI icon advanced.svg
Purge
Estado da versão: estável
Implementação User interface
Descrição Adds a purge tab on all normal pages, allowing for quick purging of the cache
Autor(es) Ævar Arnfjörð Bjarmason, Tom Hutchison
Última versão 1.0.2 (2017-11-02)
MediaWiki 1.23+
Alterações à
base de dados
Não
Licença GNU General Public License 2.0 or later
Exportação (Download)
Traduza a extensão Purge
Verifique a matriz de utilização e versões

The Purge extension adds a purge tab on all normal pages, allowing for quick purging of the cache.

Instalação

Configuration

This extension comes with an extra user right called "purge" to allow fine grained control of its usage. By default it is assigned to the "user" user group, i.e. to all users with an account who are logged in. In case you would like to also assign it to anonymous users for them to make use of the cache purging functionality without the need of a post add the following code to your "LocalSettings.php" file right after invoking this extension:

$wgGroupPermissions['*']['purge'] = true;
If you do this you may very likely want to add "index.php" to your robots.txt so that search engine spiders crawling your wiki for content do not start attempting to crawl purge links and inadvertently purging the cache of your wiki and increasing the load on your server.

Revoking the permission for the "user" user group and granting it at the same time only to the "sysop" user group may be done by adding the following two lines:

$wgGroupPermissions['user']['purge'] = false;
$wgGroupPermissions['sysop']['purge'] = true;

See also