SquidUpdate Class Reference
[Cache]

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

List of all members.

Public Member Functions

 __construct ($urlArr=Array(), $maxTitles=false)
 doUpdate ()
 debug ($text)

Static Public Member Functions

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)
static HTCPPurge ($urlArr)
static expand ($url)
 Expand local URLs to fully-qualified URLs using the internal protocol and host defined in $wgInternalServer.

Public Attributes

 $urlArr
 $mMaxTitles


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

SquidUpdate::debug ( text  ) 

Definition at line 265 of file SquidUpdate.php.

References $text, $wgDebugSquid, and wfDebug().

SquidUpdate::doUpdate (  ) 

Definition at line 75 of file SquidUpdate.php.

References purge().

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.

Returns:
string

Definition at line 285 of file SquidUpdate.php.

References $url, and $wgInternalServer.

Referenced by HTCPPurge(), and purge().

static SquidUpdate::HTCPPurge ( urlArr  )  [static]

static SquidUpdate::newFromLinksTo ( &$  title  )  [static]

Definition at line 28 of file SquidUpdate.php.

References $dbr, $fname, $res, $title, Title::makeTitle(), wfGetDB(), wfProfileIn(), and wfProfileOut().

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

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

Definition at line 58 of file SquidUpdate.php.

References $i, $title, $urlArr, and $wgMaxSquidPurgeTitles.

Referenced by HTMLCacheUpdate::invalidate().

static SquidUpdate::newSimplePurge ( &$  title  )  [static]

Definition at line 70 of file SquidUpdate.php.

References $title, and $urlArr.

Referenced by Article::doPurge().

static SquidUpdate::purge ( urlArr  )  [static]


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:

Generated on Sat Sep 5 02:08:48 2009 for MediaWiki by  doxygen 1.5.9