|描述||Adds a purge tab on all normal pages, allowing for quick purging of the cache|
|作者||Ævar Arnfjörð Bjarmason, Tom Hutchison|
|许可协议||GNU General Public License 2.0 or later|
The Purge extension adds a purge tab on all normal pages, allowing for quick purging of the cache.
- Download the latest release, extract the files文件，并将其放置在您
- Configure if required
- 完成 – 在您的wiki上导航至Special:Version，以验证扩展已成功安装。
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;
- Manual:Purge for more information about the purge action.