diff options
author | Amir Sarabadani <ladsgroup@gmail.com> | 2021-12-14 10:08:51 +0100 |
---|---|---|
committer | Amir Sarabadani <ladsgroup@gmail.com> | 2021-12-15 22:59:06 +0100 |
commit | 627c1c2c308fe5d07692b3430fd847f5b470663d (patch) | |
tree | 6d9608a0319036082d368d79467b8324b781f9da /includes/logging | |
parent | 72b63c75dceea9f0696cd6cd4860e16185a18ea3 (diff) | |
download | mediawikicore-627c1c2c308fe5d07692b3430fd847f5b470663d.tar.gz mediawikicore-627c1c2c308fe5d07692b3430fd847f5b470663d.zip |
Allow setting max execution time to several special pages
These special pages and their counter-part APIs are:
- Special:RecentChanges
- Special:Watchlist
- Special:Log
- Special:Contributions
This also changes the way MAX_EXECUTION_TIME works from taking the value
as milliseconds, it takes seconds which is more intuitive for users.
Bug: T297708
Depends-On: I126e7181422d8da1a63afc3717faa4f72a687dd9
Change-Id: I3ff78751c3df3b6342f1865d35c2075f4415185d
Diffstat (limited to 'includes/logging')
-rw-r--r-- | includes/logging/LogPager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/logging/LogPager.php b/includes/logging/LogPager.php index ed6f524ba120..e9a9a5c56f1b 100644 --- a/includes/logging/LogPager.php +++ b/includes/logging/LogPager.php @@ -380,6 +380,8 @@ class LogPager extends ReverseChronologicalPager { $options[] = 'STRAIGHT_JOIN'; } + $options['MAX_EXECUTION_TIME'] = $this->getConfig()->get( 'MaxExecutionTimeForExpensiveQueries' ); + $info = [ 'tables' => $tables, 'fields' => $fields, |