r47140 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47139‎ | r47140 | r47141 >
Date:15:16, 11 February 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Backport of r47139, RawPage file cache fix
Modified paths:
  • /branches/REL1_14/phase3 (modified) (history)
  • /branches/REL1_14/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_14/phase3/includes/HTMLFileCache.php (modified) (history)

Diff [purge]

Index: branches/REL1_14/phase3/includes/HTMLFileCache.php
@@ -132,12 +132,12 @@
133133 $filename = $this->fileCacheName();
134134 // Raw pages should handle cache control on their own,
135135 // even when using file cache. This reduces hits from clients.
136 - if( $this->mType !== 'raw' )
 136+ if( $this->mType !== 'raw' ) {
137137 $wgOut->sendCacheControl();
 138+ header( "Content-Type: $wgMimeType; charset={$wgOutputEncoding}" );
 139+ header( "Content-Language: $wgContLanguageCode" );
 140+ }
138141
139 - header( "Content-type: $wgMimeType; charset={$wgOutputEncoding}" );
140 - header( "Content-language: $wgContLanguageCode" );
141 -
142142 if( $this->useGzip() ) {
143143 if( wfClientAcceptsGzip() ) {
144144 header( 'Content-Encoding: gzip' );
Index: branches/REL1_14/phase3/RELEASE-NOTES
@@ -24,6 +24,12 @@
2525 release due to the discovery of serious problems with the schema. We expect to
2626 fix this problem for the release of 1.15.0.
2727
 28+== Changes since 1.14.0rc1 ==
 29+
 30+* Fixed performance of the backlinks API module
 31+* (bug 17420) Send the correct content type from action=raw when the HTML file
 32+ cache is enabled.
 33+
2834 === Configuration changes in 1.14 ===
2935
3036 * $wgExemptFromUserRobotsControl is an array of namespaces to be exempt from
Property changes on: branches/REL1_14/phase3
___________________________________________________________________
Name: svn:mergeinfo
3137 - /trunk/phase3:45592
3238 + /trunk/phase3:45592,47139

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r47139(bug 17420) Send the correct content type from action=raw when the HTML file ...tstarling15:07, 11 February 2009

Status & tagging log