From: Daniel Kinzler Date: Wed, 19 Sep 2007 20:06:06 +0000 (+0000) Subject: implemented action=purge for RC RSS feed. Not sure how usefull that is in production... X-Git-Tag: 1.31.0-rc.0~51354 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=b2efe88fbb6b67debefec10bc38ef21cb2328774;p=lhc%2Fweb%2Fwiklou.git implemented action=purge for RC RSS feed. Not sure how usefull that is in production, but it should easy the pain of debugging feed output. --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 96425eba05..2d70209d9c 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -332,6 +332,14 @@ function rcOutputFeed( $rows, $feedFormat, $limit, $hideminor, $lastmod ) { htmlspecialchars( wfMsgForContent( 'recentchanges-feed-description' ) ), $wgTitle->getFullUrl() ); + //purge cache if requested + global $wgRequest, $wgUser; + $purge = $wgRequest->getVal( 'action' ) == 'purge'; + if ( $purge && $wgUser->isAllowed('purge') ) { + $messageMemc->delete( $timekey ); + $messageMemc->delete( $key ); + } + /** * Bumping around loading up diffs can be pretty slow, so where * possible we want to cache the feed output so the next visitor