From 95a7cab6934b520066fd5165a9c91a614a08c48c Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 10 Jan 2005 21:04:20 +0000 Subject: [PATCH] Cache the redirect from index.php to the start page (default: Main_Page) --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 7f58774df8..58a794b809 100644 --- a/index.php +++ b/index.php @@ -82,6 +82,7 @@ if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) { !count( array_diff( array_keys( $_GET ), array( 'action', 'title' ) ) ) ) { /* redirect to canonical url, make it a 301 to allow caching */ + $wgOut->setSquidMaxage( 1200 ); $wgOut->redirect( $wgTitle->getFullURL(), '301'); } else if ( Namespace::getSpecial() == $wgTitle->getNamespace() ) { # actions that need to be made when we have a special pages -- 2.20.1