Manual:PurgeOldText.php/ja

MediaWiki バージョン:
1.6
Category:MediaWiki code/ja#PurgeOldText.php

詳細

purgeOldText.php ファイルは、maintenance ディレクトリにあるメンテナンス スクリプトであり、未使用のテキスト レコードをクリーン アップするために使用できます。 It will remove from the text table any records which are not linked to any existing or archived revision.

Such orphaned text records should not exist during normal operation. We would expect every record in the text table to be linked from either a record in the revision table or archive table, and we would expect this script to find nothing to do. However such records may be left behind after error scenarios or direct database manipulations. This script will clean them up, and bring things into a consistent state, by deleting orphan text records. The deleted data would not have been reachable. It should have no noticeable impact on pages viewable by any users or administrators.

Because the text table contains the actual wiki page content data, it can occupy significant space, and purging unneeded records could help reduce the size of the database. Optimization of the MySQL text table is advisable after purging lots of text records.

警告 警告: このスクリプトは text テーブルから未使用のエントリーを削除しようとします。これは潜在的なデータ損失を引き起こす可能性があり、大規模なウィキでは非常に低速になります。


オプション/引数

オプション説明必須かどうか
--purgeDoes the purge (otherwise only displays the number of orphaned text records).省略可能

使用法

php maintenance/run.php purgeOldText [ --purge ]
Terminal
MediaWiki バージョン 1.39.13 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。

関連項目

Category:Maintenance scripts/ja#PurgeOldText.php Category:Content maintenance scripts/ja
Category:Content maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja