Index: trunk/phase3/includes/cache/SquidUpdate.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @param $title Title |
31 | | - * |
| 31 | + * |
32 | 32 | * @return SquidUpdate |
33 | 33 | */ |
34 | 34 | static function newFromLinksTo( &$title ) { |
— | — | @@ -85,6 +85,9 @@ |
86 | 86 | return new SquidUpdate( $urlArr ); |
87 | 87 | } |
88 | 88 | |
| 89 | + /** |
| 90 | + * Purges the list of URLs passed to the constructor |
| 91 | + */ |
89 | 92 | function doUpdate() { |
90 | 93 | SquidUpdate::purge( $this->urlArr ); |
91 | 94 | } |
— | — | @@ -111,7 +114,7 @@ |
112 | 115 | } |
113 | 116 | |
114 | 117 | if ( $wgHTCPMulticastAddress && $wgHTCPPort ) { |
115 | | - return SquidUpdate::HTCPPurge( $urlArr ); |
| 118 | + SquidUpdate::HTCPPurge( $urlArr ); |
116 | 119 | } |
117 | 120 | |
118 | 121 | wfProfileIn( __METHOD__ ); |
— | — | @@ -139,6 +142,10 @@ |
140 | 143 | wfProfileOut( __METHOD__ ); |
141 | 144 | } |
142 | 145 | |
| 146 | + /** |
| 147 | + * @throws MWException |
| 148 | + * @param $urlArr array |
| 149 | + */ |
143 | 150 | static function HTCPPurge( $urlArr ) { |
144 | 151 | global $wgHTCPMulticastAddress, $wgHTCPMulticastTTL, $wgHTCPPort; |
145 | 152 | wfProfileIn( __METHOD__ ); |