Manual:purgeParserCache.php

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎русский • ‎日本語 • ‎한국어

Details[edit]

purgeParserCache.php file is a maintenance script to remove old objects from the parser cache. This script only works when the parser cache is in an SQL database, by setting $wgMainCacheType or $wgParserCacheType to their appropriate values.

Usage[edit]

Go to the maintenance directory and run:

php purgeParserCache.php [ --expiredate | --age ]

You must specify either expiredate or age.

Options[edit]

Option/Parameter Description
--expiredate=<date> Delete objects expiring before this date. The date can be specified in any format supported by the strtotime() function, like, for example, 20190310052151.
--age=<seconds> Delete objects created more than this many seconds ago, assuming $wgParserCacheExpireTime has been consistent.