From 6a9261f98d7e9ca4565955264fd56d71145d0d31 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 22 Dec 2010 16:19:32 +0000 Subject: [PATCH] Mark LinkSearch as uncacheable and fix its headers display. Followup r78786 --- includes/specials/SpecialLinkSearch.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index a54c7385e9..a47301aa6d 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -38,8 +38,14 @@ class LinkSearchPage extends QueryPage { parent::__construct( $name ); } + function isCacheable() { + return false; + } + function execute( $par ) { global $wgOut, $wgRequest, $wgUrlProtocols, $wgMiserMode, $wgLang, $wgScript; + $this->setHeaders(); + $target = $wgRequest->getVal( 'target', $par ); $namespace = $wgRequest->getIntorNull( 'namespace', null ); -- 2.20.1