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 | |
Definition at line 12 of file SquidUpdate.php.
| SquidUpdate::__construct | ( | $ | urlArr = Array(), |
|
| $ | maxTitles = false | |||
| ) |
| SquidUpdate::debug | ( | $ | text | ) |
| SquidUpdate::doUpdate | ( | ) |
| 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.
Definition at line 285 of file SquidUpdate.php.
References $url, and $wgInternalServer.
Referenced by HTCPPurge(), and purge().
| static SquidUpdate::HTCPPurge | ( | $ | urlArr | ) | [static] |
Definition at line 205 of file SquidUpdate.php.
References $fname, $url, $urlArr, $wgHTCPMulticastAddress, $wgHTCPMulticastTTL, $wgHTCPPort, expand(), wfDebug(), wfProfileIn(), and wfProfileOut().
Referenced by purge().
| 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] |
Definition at line 84 of file SquidUpdate.php.
References $error, $failed, $fname, $msg, $res, $s, $url, $urlArr, $wgHTCPMulticastAddress, $wgHTCPPort, $wgSquidServers, expand(), HTCPPurge(), wfProfileIn(), and wfProfileOut().
Referenced by benchSquid(), doUpdate(), LocalFileDeleteBatch::execute(), LocalFile::purgeCache(), LocalFile::purgeThumbnails(), LocalFile::recordUpload2(), File::transform(), and wfPurgeSquidServers().
| 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().
1.5.9