Manual:Purge/zh

Purging强制MediaWiki清除所给页面的缓存，强制使页面从源代码或脚本重新显示. 它用来确保立即呈现最新所做的改动.

一个简单的方式去清除一个MediaWiki页面的缓存，可以通过点击页面上的“查看历史”，然后在浏览器的地址栏中删除URL最后的“history”，并在“=”后输入“purge”，然后按下回车键. 您的URL应该与下面中的一个相似.

例子

 * 若要刷新页面缓存，可以在您阅读页面时在URL后加入 . 例如：




 * 若该URL在其查询字符串中还有其他参数，请使用与符号（&）将清除缓存的操作添加到查询字符串中. 例如：



请求须被确认
Purge requests made via POST are automatically filled. Users making purge requests via a query string will be presented with a confirmation form. 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.

Null edits
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. Click on "Edit" and save without changing anything. No entry in the page's history will appear, but all link tables should be refreshed.

An alternative way to update the links table is to use the API's module with the   option.

参见

 * - a command-line maintenance script that allows batch purging of articles.
 * Require POST in ?action=purge
 * Require POST in ?action=purge
 * Require POST in ?action=purge
 * Require POST in ?action=purge
 * Require POST in ?action=purge