MediaWiki
REL1_19
|
Handles purging appropriate Squid URLs given a title (or titles) More...
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 |
Handles purging appropriate Squid URLs given a title (or titles)
Definition at line 12 of file SquidUpdate.php.
SquidUpdate::__construct | ( | $ | urlArr = Array() , |
$ | maxTitles = false |
||
) |
Definition at line 15 of file SquidUpdate.php.
References $urlArr, and $wgMaxSquidPurgeTitles.
Purges the list of URLs passed to the constructor.
Definition at line 91 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.
$url | string |
Definition at line 223 of file SquidUpdate.php.
References $url, and wfExpandUrl().
Referenced by HTCPPurge().
static SquidUpdate::HTCPPurge | ( | $ | urlArr | ) | [static] |
MWException |
$urlArr | array |
Definition at line 149 of file SquidUpdate.php.
References $url, $urlArr, $wgHTCPMulticastAddress, $wgHTCPMulticastTTL, $wgHTCPPort, expand(), wfDebug(), wfProfileIn(), and wfProfileOut().
Referenced by purge().
static SquidUpdate::newFromLinksTo | ( | &$ | title | ) | [static] |
$title | Title |
Definition at line 33 of file SquidUpdate.php.
References $dbr, $res, $title, $wgMaxSquidPurgeTitles, 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.
$titles | array |
$urlArr | array |
Definition at line 66 of file SquidUpdate.php.
References $title, $urlArr, and $wgMaxSquidPurgeTitles.
Referenced by HTMLCacheUpdate\invalidateTitles().
static SquidUpdate::newSimplePurge | ( | &$ | title | ) | [static] |
$title | Title |
Definition at line 83 of file SquidUpdate.php.
References $title, and $urlArr.
Referenced by WikiPage\doPurge().
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
$urlArr | array |
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().
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().