From: Jens Frank Date: Mon, 10 Jan 2005 21:04:20 +0000 (+0000) Subject: Cache the redirect from index.php to the start page (default: Main_Page) X-Git-Tag: 1.5.0alpha1~972 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=95a7cab6934b520066fd5165a9c91a614a08c48c;p=lhc%2Fweb%2Fwiklou.git Cache the redirect from index.php to the start page (default: Main_Page) --- 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