MediaWiki
REL1_22
|
Maintenance script that sends purge requests for listed pages to squid. More...
Public Member Functions | |
__construct () | |
execute () | |
Private Member Functions | |
doPurge () | |
Purge URL coming from stdin. | |
purgeNamespace ($namespace=false) | |
Purge a namespace or all pages. | |
sendPurgeRequest ($urls) | |
Helper to purge an array of $urls. |
Maintenance script that sends purge requests for listed pages to squid.
Definition at line 31 of file purgeList.php.
Reimplemented from Maintenance.
Definition at line 32 of file purgeList.php.
References Maintenance\addOption(), and Maintenance\setBatchSize().
PurgeList::doPurge | ( | ) | [private] |
Purge URL coming from stdin.
Definition at line 55 of file purgeList.php.
References $title, $urls, array(), Maintenance\getOption(), Maintenance\getStdin(), Title\newFromText(), Maintenance\output(), and sendPurgeRequest().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 43 of file purgeList.php.
References doPurge(), Maintenance\getOption(), Maintenance\hasOption(), Maintenance\output(), and purgeNamespace().
PurgeList::purgeNamespace | ( | $ | namespace = false | ) | [private] |
Purge a namespace or all pages.
Definition at line 82 of file purgeList.php.
References $dbr, $res, $title, $urls, array(), as, Title\makeTitle(), sendPurgeRequest(), and wfGetDB().
Referenced by execute().
PurgeList::sendPurgeRequest | ( | $ | urls | ) | [private] |
Helper to purge an array of $urls.
$urls | array List of URLS to purge from squids |
Definition at line 119 of file purgeList.php.
References $urls, array(), as, Maintenance\getOption(), Maintenance\hasOption(), and Maintenance\output().
Referenced by doPurge(), and purgeNamespace().