Manual:PurgeParserCache.php/ru

Версия MediaWiki:
1.18
Category:MediaWiki code/ru#PurgeParserCache.php

подробности

Файл purgeParserCache.php это сценарий обслуживания для удаления старых объектов из кэша анализатора. This script only works when the parser cache is in an SQL database, by setting $wgMainCacheType or $wgParserCacheType to their appropriate values.

Опции

Опция / параметрОписанияRequired?
--expiredateDelete objects expiring before this date. The date can be specified in any format supported by the strtotime() function, like, for example, 20250506174359.По желанию
--ageDelete objects created more than this many seconds ago, assuming $wgParserCacheExpireTime has been consistent.По желанию
--dry-runPerform a dry run, to verify age and date calculation.По желанию
--msleepMilliseconds 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/run.php purgeParserCache [ --expiredate| --age | --dry-run| --msleep| --tag ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts/ru#PurgeParserCache.php Category:Content maintenance scripts/ru
Category:Content maintenance scripts/ru Category:Maintenance scripts/ru Category:MediaWiki code/ru