MediaWiki  REL1_19
SquidUpdate Class Reference

Handles purging appropriate Squid URLs given a title (or titles) More...

List of all members.

Public Member Functions

 __construct ($urlArr=Array(), $maxTitles=false)
 doUpdate ()
 Purges the list of URLs passed to the constructor.

Static Public Member Functions

static expand ($url)
 Expand local URLs to fully-qualified URLs using the internal protocol and host defined in $wgInternalServer.
static HTCPPurge ($urlArr)
static newFromLinksTo (&$title)
static newFromTitles ($titles, $urlArr=array())
 Create a SquidUpdate from an array of Title objects, or a TitleArray object.
static newSimplePurge (&$title)
static purge ($urlArr)
 Purges a list of Squids defined in $wgSquidServers.

Public Attributes

 $mMaxTitles
 $urlArr

Detailed Description

Handles purging appropriate Squid URLs given a title (or titles)

Definition at line 12 of file SquidUpdate.php.


Constructor & Destructor Documentation

SquidUpdate::__construct ( urlArr = Array(),
maxTitles = false 
)

Definition at line 15 of file SquidUpdate.php.

References $urlArr, and $wgMaxSquidPurgeTitles.


Member Function Documentation

Purges the list of URLs passed to the constructor.

Definition at line 91 of file SquidUpdate.php.

References purge().

Here is the call graph for this function:

static SquidUpdate::expand ( url) [static]

Expand local URLs to fully-qualified URLs using the internal protocol and host defined in $wgInternalServer.

Input that's already fully- qualified will be passed through unchanged.

This is used to generate purge URLs that may be either local to the main wiki or include a non-native host, such as images hosted on a second internal server.

Client functions should not need to call this.

Parameters:
$urlstring
Returns:
string

Definition at line 223 of file SquidUpdate.php.

References $url, and wfExpandUrl().

Referenced by HTCPPurge().

Here is the call graph for this function:

Here is the caller graph for this function:

static SquidUpdate::HTCPPurge ( urlArr) [static]
Exceptions:
MWException
Parameters:
$urlArrarray

Definition at line 149 of file SquidUpdate.php.

References $url, $urlArr, $wgHTCPMulticastAddress, $wgHTCPMulticastTTL, $wgHTCPPort, expand(), wfDebug(), wfProfileIn(), and wfProfileOut().

Referenced by purge().

Here is the call graph for this function:

Here is the caller graph for this function:

static SquidUpdate::newFromLinksTo ( &$  title) [static]
Parameters:
$titleTitle
Returns:
SquidUpdate

Definition at line 33 of file SquidUpdate.php.

References $dbr, $res, $title, $wgMaxSquidPurgeTitles, Title\makeTitle(), wfGetDB(), wfProfileIn(), and wfProfileOut().

Here is the call graph for this function:

static SquidUpdate::newFromTitles ( titles,
urlArr = array() 
) [static]

Create a SquidUpdate from an array of Title objects, or a TitleArray object.

Parameters:
$titlesarray
$urlArrarray
Returns:
SquidUpdate

Definition at line 66 of file SquidUpdate.php.

References $title, $urlArr, and $wgMaxSquidPurgeTitles.

Referenced by HTMLCacheUpdate\invalidateTitles().

Here is the caller graph for this function:

static SquidUpdate::newSimplePurge ( &$  title) [static]
Parameters:
$titleTitle
Returns:
SquidUpdate

Definition at line 83 of file SquidUpdate.php.

References $title, and $urlArr.

Referenced by WikiPage\doPurge().

Here is the caller graph for this function:

static SquidUpdate::purge ( urlArr) [static]

Purges a list of Squids defined in $wgSquidServers.

$urlArr should contain the full URLs to purge as values (example: $urlArr[] = 'http://my.host/something') XXX report broken Squids per mail or log

Parameters:
$urlArrarray
Returns:
void

Definition at line 104 of file SquidUpdate.php.

References $url, $urlArr, $wgHTCPMulticastAddress, $wgHTCPPort, $wgSquidServers, HTCPPurge(), wfProfileIn(), and wfProfileOut().

Referenced by BenchmarkPurge\benchSquid(), LocalFile\delete(), LocalFile\deleteOld(), RevDel_FileList\doPostCommitUpdates(), doUpdate(), LocalFileDeleteBatch\execute(), LocalFile\purgeCache(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbnails(), LocalFile\recordUpload2(), and File\transform().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

SquidUpdate::$mMaxTitles

Definition at line 13 of file SquidUpdate.php.

SquidUpdate::$urlArr

Definition at line 13 of file SquidUpdate.php.

Referenced by __construct(), HTCPPurge(), newFromTitles(), newSimplePurge(), and purge().


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