Documentation
authorSam Reed <reedy@users.mediawiki.org>
Tue, 12 Jul 2011 19:59:35 +0000 (19:59 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 12 Jul 2011 19:59:35 +0000 (19:59 +0000)
includes/cache/SquidUpdate.php

index 2caf269..07ef04a 100644 (file)
@@ -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__ );