X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiPurge.php;h=b7cfc2c6a20b659a3c27700dcef1ba0f1b13c926;hb=f2ef535e3959372dd84f527cb7d45600c56c93a9;hp=83227a2fc2d83c5b0f8748834b7db3c32ea48bbc;hpb=10d1b7d12b5d097413cd507740c5c71781c2580b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 83227a2fc2..b7cfc2c6a2 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -1,12 +1,6 @@ getSecondaryDataUpdates( $title, null, $forceRecursiveLinkUpdate, $p_result ); foreach ( $updates as $update ) { + $update->setCause( 'api-purge', $this->getUser()->getName() ); DeferredUpdates::addUpdate( $update, DeferredUpdates::PRESEND ); } $r['linkupdate'] = true; if ( $enableParserCache ) { - $pcache = ParserCache::singleton(); + $pcache = MediaWikiServices::getInstance()->getParserCache(); $pcache->save( $p_result, $page, $popts ); } }