Справочник:PurgeParserCache.php
Outdated translations are marked like this.
Версия MediaWiki: | ≥ 1.18 |
Файл MediaWiki: purgeParserCache.php | |
---|---|
Расположение: | maintenance/ |
Исходный код: | master • 1.42.1 • 1.41.2 • 1.39.8 |
Классы: | 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.
Опции
Опция / параметр | Описания | Required? |
---|---|---|
--expiredate | Delete objects expiring before this date. The date can be specified in any format supported by the strtotime() function, like, for example, 20240915145514. | По желанию |
--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
$ php maintenance/purgeParserCache.php --age 30 Deleting objects expiring before Tue, 29 Mar 2022 03:02:49 GMT ... 81.9% done (+1 iterations in 0.0s) ... 100.0% done (+2 iterations in 0.0s) Done