Public Member Functions | |
| __construct ($urlArr=Array(), $maxTitles=false) | |
| doUpdate () | |
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::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 196 of file SquidUpdate.php.
References $url, and $wgInternalServer.
Referenced by HTCPPurge().
| static SquidUpdate::HTCPPurge | ( | $ | urlArr | ) | [static] |
Definition at line 124 of file SquidUpdate.php.
References $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, $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 57 of file SquidUpdate.php.
References $i, $title, $urlArr, and $wgMaxSquidPurgeTitles.
Referenced by HTMLCacheUpdate::invalidateTitles().
| static SquidUpdate::newSimplePurge | ( | &$ | title | ) | [static] |
Definition at line 69 of file SquidUpdate.php.
References $title, and $urlArr.
Referenced by Article::doPurge().
| static SquidUpdate::purge | ( | $ | urlArr | ) | [static] |
Definition at line 83 of file SquidUpdate.php.
References $client, $url, $urlArr, $wgHTCPMulticastAddress, $wgHTCPPort, $wgSquidServers, HTCPPurge(), wfProfileIn(), and wfProfileOut().
Referenced by BenchmarkPurge::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