From: Tim Starling Date: Wed, 25 Apr 2007 09:05:09 +0000 (+0000) Subject: X-Database-Lag header X-Git-Tag: 1.31.0-rc.0~53236 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=c14ee392ebe66190e405e8e1d401d5a464e60311;p=lhc%2Fweb%2Fwiklou.git X-Database-Lag header --- diff --git a/includes/Wiki.php b/includes/Wiki.php index dbdec4a184..612e58eebc 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -62,6 +62,7 @@ class MediaWiki { if ( $lag > $maxLag ) { header( 'HTTP/1.1 503 Service Unavailable' ); header( 'Retry-After: ' . max( intval( $maxLag ), 5 ) ); + header( 'X-Database-Lag: ' . intval( $lag ) ); header( 'Content-Type: text/plain' ); echo "Waiting for $host: $lag seconds lagged\n"; return false;