-
- # Logging to better see expensive usage patterns
- if ( $forceRecursiveLinkUpdate ) {
- LoggerFactory::getInstance( 'RecursiveLinkPurge' )->info(
- "Recursive link purge enqueued for {title}",
- [
- 'user' => $this->getUser()->getName(),
- 'title' => $title->getPrefixedText()
- ]
- );
- }
-
- # Update the links tables
- $updates = $content->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 = MediaWikiServices::getInstance()->getParserCache();
- $pcache->save( $p_result, $page, $popts );
- }