Podręcznik:PurgeParserCache.php

This page is a translated version of the page Manual:PurgeParserCache.php and the translation is 37% complete.
Wersja MediaWiki:
1.18

Szczegóły

Plik purgeParserCache.php jest skrypt konserwacji do usuwania starych obiektów z pamięci podręcznej parsera. This script only works when the parser cache is in an SQL database, by setting $wgMainCacheType or $wgParserCacheType to their appropriate values.

Opcje/argumenty

Opcja Description Wymagane?
--expiredate Delete objects expiring before this date. The date can be specified in any format supported by the strtotime() function, like, for example, 20240411013232. Optional
--age Delete objects created more than this many seconds ago, assuming $wgParserCacheExpireTime has been consistent. Optional
--dry-run Perform a dry run, to verify age and date calculation. Optional
--msleep Milliseconds to sleep between purge chunks of $wgUpdateRowsPerQuery. Optional
--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 . Optional

You must specify either expiredate or age.

Usage

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

Zobacz też