Make Special:MIMESearch non-expensive, again
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 28 Sep 2016 19:08:04 +0000 (21:08 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 28 Sep 2016 19:08:04 +0000 (21:08 +0200)
The queries here are using a good-enough index and are not expensive
(since 3342fafb), taking a second or two at most on Wikimedia Commons.
However, they use inefficient offset+limit paging, which caused the
issues described in T107265 and resulted in the page being marked as
expensive again in 77014c76. But since we limited offset to 10000 in
e33d6f45, this should be fine to enable again.

Bug: T107265
Change-Id: I65ec541dd32f1e23488f5d5e1886332af2a55744

includes/specials/SpecialMIMEsearch.php

index e3be225..6093f83 100644 (file)
@@ -35,7 +35,7 @@ class MIMEsearchPage extends QueryPage {
        }
 
        public function isExpensive() {
-               return true;
+               return false;
        }
 
        function isSyndicated() {