扩展:刷新

This page is a translated version of the page Extension:Purge and the translation is 62% complete.
MediaWiki擴充功能手冊
OOjs UI icon advanced-invert.svg
Purge
发布状态: 稳定版
实现 用户界面
描述 在所有普通页面上添加清除缓存选项卡,以便快速清除缓存
作者 Ævar Arnfjörð Bjarmason, Tom Hutchison
最新版本 2.0.0 (2020-06-11)
MediaWiki 1.31+
数据庫更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
翻譯Purge擴充功能

检查使用和版本矩阵。

清除扩展名在所有普通页面上添加了清除选项卡,允许快速清除缓存。

安装

配置

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;

参见