Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -378,6 +378,7 @@ |
379 | 379 | |
380 | 380 | if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) { |
381 | 381 | global $wgUser; |
| 382 | + $this->getMain()->setVaryCookie(); |
382 | 383 | $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->rc_comment, $title ); |
383 | 384 | } |
384 | 385 | |
Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -188,6 +188,7 @@ |
189 | 189 | |
190 | 190 | if ( !is_null( $params['summary'] ) ) { |
191 | 191 | $result_array['parsedsummary'] = array(); |
| 192 | + $this->getMain()->setVaryCookie(); |
192 | 193 | $result->setContent( $result_array['parsedsummary'], $wgUser->getSkin()->formatComment( $params['summary'], $titleObj ) ); |
193 | 194 | } |
194 | 195 | |
— | — | @@ -222,6 +223,7 @@ |
223 | 224 | if ( isset( $prop['headitems'] ) || isset( $prop['headhtml'] ) ) { |
224 | 225 | $out = new OutputPage; |
225 | 226 | $out->addParserOutputNoText( $p_result ); |
| 227 | + $this->getMain()->setVaryCookie(); |
226 | 228 | $userSkin = $wgUser->getSkin(); |
227 | 229 | } |
228 | 230 | |
Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -211,6 +211,7 @@ |
212 | 212 | |
213 | 213 | if ( $fld_parsedcomment ) { |
214 | 214 | global $wgUser; |
| 215 | + $this->getMain()->setVaryCookie(); |
215 | 216 | $rev['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->ar_comment, $title ); |
216 | 217 | } |
217 | 218 | if ( $fld_minor && $row->ar_minor_edit == 1 ) { |
Index: trunk/phase3/includes/api/ApiQueryProtectedTitles.php |
— | — | @@ -102,6 +102,7 @@ |
103 | 103 | |
104 | 104 | if ( isset( $prop['parsedcomment'] ) ) { |
105 | 105 | global $wgUser; |
| 106 | + $this->getMain()->setVaryCookie(); |
106 | 107 | $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->pt_reason, $title ); |
107 | 108 | } |
108 | 109 | |
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -272,6 +272,7 @@ |
273 | 273 | |
274 | 274 | if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) { |
275 | 275 | global $wgUser; |
| 276 | + $this->getMain()->setVaryCookie(); |
276 | 277 | $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->rc_comment, $title ); |
277 | 278 | } |
278 | 279 | |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -395,6 +395,7 @@ |
396 | 396 | |
397 | 397 | if ( $this->fld_parsedcomment ) { |
398 | 398 | global $wgUser; |
| 399 | + $this->getMain()->setVaryCookie(); |
399 | 400 | $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $comment, $title ); |
400 | 401 | } |
401 | 402 | } |
Index: trunk/phase3/includes/api/ApiFeedWatchlist.php |
— | — | @@ -78,6 +78,9 @@ |
79 | 79 | $fauxReqArr['wlowner'] = $params['wlowner']; |
80 | 80 | } |
81 | 81 | if ( !is_null( $params['wltoken'] ) ) { |
| 82 | + // Don't cache tokens |
| 83 | + $this->getMain()->setCachePrivate(); |
| 84 | + |
82 | 85 | $fauxReqArr['wltoken'] = $params['wltoken']; |
83 | 86 | } |
84 | 87 | |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -321,6 +321,7 @@ |
322 | 322 | |
323 | 323 | if ( $this->fld_parsedcomment ) { |
324 | 324 | global $wgUser; |
| 325 | + $this->getMain()->setVaryCookie(); |
325 | 326 | $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->rev_comment, $title ); |
326 | 327 | } |
327 | 328 | } |