MediaWiki  REL1_22
PurgeList Class Reference

Maintenance script that sends purge requests for listed pages to squid. More...

Inheritance diagram for PurgeList:
Collaboration diagram for PurgeList:

List of all members.

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.

Detailed Description

Maintenance script that sends purge requests for listed pages to squid.

Definition at line 31 of file purgeList.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 32 of file purgeList.php.

References Maintenance\addOption(), and Maintenance\setBatchSize().


Member Function Documentation

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().

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.

Parameters:
$urlsarray 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().


The documentation for this class was generated from the following file: