Index: trunk/extensions/RSS/RSSParser.php |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | // 2. if there is a hit, make sure its fresh |
113 | 113 | // 3. if cached obj fails freshness check, fetch remote |
114 | 114 | // 4. if remote fails, return stale object, or error |
115 | | - $key = wfMemcKey( $this->url ); |
| 115 | + $key = wfMemcKey( 'rss', $this->url ); |
116 | 116 | $cachedFeed = $this->loadFromCache( $key ); |
117 | 117 | if ( $cachedFeed !== false ) { |
118 | 118 | wfDebugLog( 'RSS', 'Outputting cached feed for ' . $this->url ); |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | global $wgMemc, $wgRSSCacheCompare; |
134 | 134 | |
135 | 135 | $data = $wgMemc->get( $key ); |
136 | | - if ( $data === false ) { |
| 136 | + if ( !is_array( $data ) ) { |
137 | 137 | return false; |
138 | 138 | } |
139 | 139 | |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
164 | | - * Store this objects (e.g. etag, lastModified, and RSS) in the cache. |
| 164 | + * Store these objects (i.e. etag, lastModified, and RSS) in the cache. |
165 | 165 | * @param $key String: lookup key to associate with this item |
166 | 166 | * @return boolean |
167 | 167 | */ |