X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeedUtils.php;h=0a88b2345fb92dc0539a2a9fe77c0efb7d02274a;hb=ee09d4f0ee2e592e721f00805735afcb9e3e7e22;hp=899ac09ad2b26498ce7311b13e38ee9cfca6a0fb;hpb=124d8f4b9329f68074634c969f05e7576afe9380;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index 899ac09ad2..0a88b2345f 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -20,6 +20,7 @@ * @file * @ingroup Feed */ +use MediaWiki\MediaWikiServices; /** * Helper functions for feeds @@ -41,7 +42,7 @@ class FeedUtils { $purge = $wgRequest->getVal( 'action' ) === 'purge'; // Allow users with 'purge' right to clear feed caches if ( $purge && $wgUser->isAllowed( 'purge' ) ) { - $cache = ObjectCache::getMainWANInstance(); + $cache = MediaWikiServices::getInstance()->getMainWANObjectCache(); $cache->delete( $timekey, 1 ); $cache->delete( $key, 1 ); }