r91993 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91992‎ | r91993 | r91994 >
Date:19:59, 12 July 2011
Author:reedy
Status:ok
Tags:
Comment:
Documentation
Modified paths:
  • /trunk/phase3/includes/cache/SquidUpdate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/cache/SquidUpdate.php
@@ -27,7 +27,7 @@
2828
2929 /**
3030 * @param $title Title
31 - *
 31+ *
3232 * @return SquidUpdate
3333 */
3434 static function newFromLinksTo( &$title ) {
@@ -85,6 +85,9 @@
8686 return new SquidUpdate( $urlArr );
8787 }
8888
 89+ /**
 90+ * Purges the list of URLs passed to the constructor
 91+ */
8992 function doUpdate() {
9093 SquidUpdate::purge( $this->urlArr );
9194 }
@@ -111,7 +114,7 @@
112115 }
113116
114117 if ( $wgHTCPMulticastAddress && $wgHTCPPort ) {
115 - return SquidUpdate::HTCPPurge( $urlArr );
 118+ SquidUpdate::HTCPPurge( $urlArr );
116119 }
117120
118121 wfProfileIn( __METHOD__ );
@@ -139,6 +142,10 @@
140143 wfProfileOut( __METHOD__ );
141144 }
142145
 146+ /**
 147+ * @throws MWException
 148+ * @param $urlArr array
 149+ */
143150 static function HTCPPurge( $urlArr ) {
144151 global $wgHTCPMulticastAddress, $wgHTCPMulticastTTL, $wgHTCPPort;
145152 wfProfileIn( __METHOD__ );

Status & tagging log