Index: trunk/extensions/Translate/SpecialImportTranslations.php |
— | — | @@ -273,29 +273,17 @@ |
274 | 274 | } |
275 | 275 | |
276 | 276 | protected function setCachedData( $data ) { |
277 | | - global $wgMemc; |
278 | | - |
279 | 277 | $key = wfMemcKey( 'translate', 'webimport', $this->user->getId() ); |
280 | | - |
281 | | - /** |
282 | | - * Cache 15 minutes. |
283 | | - */ |
284 | | - $wgMemc->set( $key, $data, 60 * 15 ); |
| 278 | + wfGetCache( CACHE_DB )->set( $key, $data, 60 * 30 ); |
285 | 279 | } |
286 | 280 | |
287 | 281 | protected function getCachedData() { |
288 | | - global $wgMemc; |
289 | | - |
290 | 282 | $key = wfMemcKey( 'translate', 'webimport', $this->user->getId() ); |
291 | | - |
292 | | - return $wgMemc->get( $key ); |
| 283 | + return wfGetCache( CACHE_DB )->get( $key ); |
293 | 284 | } |
294 | 285 | |
295 | 286 | protected function deleteCachedData() { |
296 | | - global $wgMemc; |
297 | | - |
298 | 287 | $key = wfMemcKey( 'translate', 'webimport', $this->user->getId() ); |
299 | | - |
300 | | - return $wgMemc->delete( $key ); |
| 288 | + return wfGetCache( CACHE_DB )->delete( $key ); |
301 | 289 | } |
302 | 290 | } |