dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
855dfc3
)
Ignore DBPerformance warnings for ?action=purge for users with "purge"
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 24 Mar 2016 21:30:12 +0000
(14:30 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 24 Mar 2016 21:30:12 +0000
(14:30 -0700)
Change-Id: Ib6d1c9a6885008a7e2233adb26b6234787e32670
includes/actions/PurgeAction.php
patch
|
blob
|
history
diff --git
a/includes/actions/PurgeAction.php
b/includes/actions/PurgeAction.php
index
508bbe0
..
576533d
100644
(file)
--- 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 ]