手册:purgeList.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:PurgeList.php and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎suomi • ‎中文 • ‎日本語

详情

purgeList.php file is a maintenance script to send purge requests for listed pages to squids.

If you feed this script with page names instead of URLs, or use the option to purge all pages, it will only send cache purge request to pages using its internal URL form, ignoring any customization made in the TitleSquidURLs hook. See 任务T183628.

语法

php purgeList.php --purge < purge.txt

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

用法

选项/参数 描述
--namespace=number Namespace number. Use it to purge all pages from the given namespace (you don't have to pass a list of pages when using this option).
--all Purge all pages (you don't have to pass a list of pages when using this option) MW 1.21+
--purge 是否更新page_touched
--delay=number Number of seconds to delay between each purge MW 1.21+
--verbose 显示更多输出 MW 1.21+

See also