From: Sam Reed Date: Tue, 12 Jul 2011 19:59:35 +0000 (+0000) Subject: Documentation X-Git-Tag: 1.31.0-rc.0~28900 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=2a4c94f90efbb5f6e4737d4cda4a02079c965592;p=lhc%2Fweb%2Fwiklou.git Documentation --- diff --git a/includes/cache/SquidUpdate.php b/includes/cache/SquidUpdate.php index 2caf269c6d..07ef04acc5 100644 --- a/includes/cache/SquidUpdate.php +++ b/includes/cache/SquidUpdate.php @@ -27,7 +27,7 @@ class SquidUpdate { /** * @param $title Title - * + * * @return SquidUpdate */ static function newFromLinksTo( &$title ) { @@ -85,6 +85,9 @@ class SquidUpdate { return new SquidUpdate( $urlArr ); } + /** + * Purges the list of URLs passed to the constructor + */ function doUpdate() { SquidUpdate::purge( $this->urlArr ); } @@ -111,7 +114,7 @@ class SquidUpdate { } if ( $wgHTCPMulticastAddress && $wgHTCPPort ) { - return SquidUpdate::HTCPPurge( $urlArr ); + SquidUpdate::HTCPPurge( $urlArr ); } wfProfileIn( __METHOD__ ); @@ -139,6 +142,10 @@ class SquidUpdate { wfProfileOut( __METHOD__ ); } + /** + * @throws MWException + * @param $urlArr array + */ static function HTCPPurge( $urlArr ) { global $wgHTCPMulticastAddress, $wgHTCPMulticastTTL, $wgHTCPPort; wfProfileIn( __METHOD__ );