From c4b92206fc61177725c548b8ffc7f13aa1fc5e71 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 17 Jan 2009 18:44:28 +0000 Subject: * Added 'target' param to changesfeed to fix total breakage of RCL feed. They were all using the same cache so the feed for page X sometimes showed the feed for page Y. * Removed extra constant cache key params * Added feed comments * Fixed tab space --- includes/ChangesFeed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/ChangesFeed.php') diff --git a/includes/ChangesFeed.php b/includes/ChangesFeed.php index f3c3e4294f52..33a1f05f596a 100644 --- a/includes/ChangesFeed.php +++ b/includes/ChangesFeed.php @@ -18,7 +18,7 @@ class ChangesFeed { $feedTitle, htmlspecialchars( $description ), $wgTitle->getFullUrl() ); } - public function execute( $feed, $rows, $limit = 0 , $hideminor = false, $lastmod = false ) { + public function execute( $feed, $rows, $limit=0, $hideminor=false, $lastmod=false, $target='' ) { global $messageMemc, $wgFeedCacheTimeout; global $wgFeedClasses, $wgSitename, $wgContLanguageCode; @@ -27,7 +27,7 @@ class ChangesFeed { } $timekey = wfMemcKey( $this->type, $this->format, 'timestamp' ); - $key = wfMemcKey( $this->type, $this->format, 'limit', $limit, 'minor', $hideminor ); + $key = wfMemcKey( $this->type, $this->format, $limit, $hideminor, $target ); FeedUtils::checkPurge($timekey, $key); -- cgit v1.2.3