Jump to content

Manual:purgeParserCache.php

From mediawiki.org
This page is a translated version of the page Manual:PurgeParserCache.php and the translation is 47% complete.
MediaWiki バージョン:
1.18

詳細

purgeParserCache.php ファイルは、パーサーキャッシュから古いオブジェクトを削除するメンテナンススクリプトです。 This script only works when the parser cache is in an SQL database, by setting $wgMainCacheType or $wgParserCacheType to their appropriate values.

オプション/引数

オプション 説明 必須かどうか
--expiredate Delete objects expiring before this date. The date can be specified in any format supported by the strtotime() function, like, for example, 20241025030433. 省略可能
--age Delete objects created more than this many seconds ago, assuming $wgParserCacheExpireTime has been consistent. 省略可能
--dry-run Perform a dry run, to verify age and date calculation. 省略可能
--msleep Milliseconds to sleep between purge chunks of $wgUpdateRowsPerQuery. 省略可能
--tag Purge a single server only. This feature is designed for use by large wiki farms where one has to purge multiple servers concurrently in order to keep up with new writes. This requires using the SqlBagOStuff "servers" option in $wgObjectCaches . 省略可能

You must specify either expiredate or age.

使用法

php maintenance/purgeParserCache.php [ --expiredate| --age | --dry-run| --msleep| --tag ]
Terminal

関連項目