X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fapi%2FApiPurge.php;h=64bb9ba10110b1dd1dce5208f8ec0eee232d2937;hb=e052761ca0d6a919a3571b145bad3c0067391281;hp=36b62f5941ca0d2972154c4464788563904a242d;hpb=953932c621f24efc06760c430fdbadce21e8767b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 36b62f5941..64bb9ba101 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -24,6 +24,7 @@ * * @file */ +use MediaWiki\Logger\LoggerFactory; /** * API interface for page purging @@ -75,6 +76,17 @@ class ApiPurge extends ApiBase { $enableParserCache ); + # 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 );