Manual:purgeParserCache.php
Jump to navigation
Jump to search
MediaWiki ファイル: purgeParserCache.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.35.1 • 1.31.12 |
クラス: | PurgeParserCache |
詳細
purgeParserCache.php ファイルは、パーサーキャッシュから古いオブジェクトを削除するメンテナンススクリプトです。 This script only works when the parser cache is in an SQL database, by setting $wgMainCacheType or $wgParserCacheType to their appropriate values.
使用法
Go to the maintenance directory and run:
php purgeParserCache.php [ --expiredate | --age ]
You must specify either expiredate
or age
.
オプション
オプション/パラメーター | 説明 |
---|---|
--expiredate=<date> | Delete objects expiring before this date. The date can be specified in any format supported by the strtotime() function, like, for example, 20210228103934. |
--age=<seconds> | Delete objects created more than this many seconds ago, assuming $wgParserCacheExpireTime has been consistent. |