From ac50bd61c8894d73a104a35448c8b066097ebdf1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 24 Mar 2016 14:30:12 -0700 Subject: [PATCH] Ignore DBPerformance warnings for ?action=purge for users with "purge" Change-Id: Ib6d1c9a6885008a7e2233adb26b6234787e32670 --- includes/actions/PurgeAction.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index 508bbe0a85..576533d3b7 100644 --- a/includes/actions/PurgeAction.php +++ b/includes/actions/PurgeAction.php @@ -66,6 +66,10 @@ class PurgeAction extends FormAction { } if ( $user->isAllowed( 'purge' ) ) { + // This will update the database immediately, even on HTTP GET. + // Lots of uses may exist for this feature, so just ignore warnings. + Profiler::instance()->getTransactionProfiler()->resetExpectations(); + $this->redirectParams = wfArrayToCgi( array_diff_key( $this->getRequest()->getQueryValues(), [ 'title' => null, 'action' => null ] -- 2.20.1