Skip to content

Commit 993af34

Browse files
authored
Add $wgMaxExecutionTimeForExpensiveQueries to LocalSetting.php (#486)
Limit max execution time for expensive queries in an attempt to reduce the impact of scrapers on recent changes Bug: T399804
1 parent b891982 commit 993af34

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

dist-persist/wbstack/src/Settings/LocalSettings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
];
139139
}
140140

141+
// Limit expensive queries (T399804)
142+
$wgMaxExecutionTimeForExpensiveQueries = 5_000;
143+
141144
// Jobs
142145
# For now jobs will run in the requests, this obviously isn't the ideal solution and really
143146
# there should be a job running service deployed...

dist/wbstack/src/Settings/LocalSettings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
];
139139
}
140140

141+
// Limit expensive queries (T399804)
142+
$wgMaxExecutionTimeForExpensiveQueries = 5_000;
143+
141144
// Jobs
142145
# For now jobs will run in the requests, this obviously isn't the ideal solution and really
143146
# there should be a job running service deployed...

0 commit comments

Comments
 (0)