diff options
author | Bryan Tong Minh <btongminh@users.mediawiki.org> | 2009-11-12 22:13:20 +0000 |
---|---|---|
committer | Bryan Tong Minh <btongminh@users.mediawiki.org> | 2009-11-12 22:13:20 +0000 |
commit | 7cc194b185c93732cbf2d4982088161594cb7d5a (patch) | |
tree | 189802646fa26d168c796bdd5d0eee04c33cf1dd /includes/ChangesFeed.php | |
parent | 39765331dc2a3d61c314312cc8608454c6a127f6 (diff) | |
download | mediawikicore-7cc194b185c93732cbf2d4982088161594cb7d5a.tar.gz mediawikicore-7cc194b185c93732cbf2d4982088161594cb7d5a.zip |
(bug 19391) Fix caching for Recent ChangesFeed. Patch by Mormegil.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/58978
Diffstat (limited to 'includes/ChangesFeed.php')
-rw-r--r-- | includes/ChangesFeed.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/ChangesFeed.php b/includes/ChangesFeed.php index ce49b005fd42..2058868d277b 100644 --- a/includes/ChangesFeed.php +++ b/includes/ChangesFeed.php @@ -20,14 +20,14 @@ class ChangesFeed { public function execute( $feed, $rows, $limit=0, $hideminor=false, $lastmod=false, $target='' ) { global $messageMemc, $wgFeedCacheTimeout; - global $wgSitename, $wgContLanguageCode; + global $wgSitename, $wgLang; if ( !FeedUtils::checkFeedOutput( $this->format ) ) { return; } $timekey = wfMemcKey( $this->type, $this->format, 'timestamp' ); - $key = wfMemcKey( $this->type, $this->format, $limit, $hideminor, $target ); + $key = wfMemcKey( $this->type, $this->format, $limit, $hideminor, $target, $wgLang->getCode() ); FeedUtils::checkPurge($timekey, $key); @@ -55,7 +55,7 @@ class ChangesFeed { public function saveToCache( $feed, $timekey, $key ) { global $messageMemc; $expire = 3600 * 24; # One day - $messageMemc->set( $key, $feed ); + $messageMemc->set( $key, $feed, $expire ); $messageMemc->set( $timekey, wfTimestamp( TS_MW ), $expire ); } |