}
function fileCacheTime() {
- return wfUnix2Timestamp( filemtime( $this->fileCacheName() ) );
+ return wfTimestamp( TS_MW, filemtime( $this->fileCacheName() ) );
}
function isFileCacheGood( $timestamp ) {
/* Working directory to/from output */
function loadFromFileCache() {
- global $wgOut;
+ global $wgOut, $wgMimeType, $wgOutputEncoding, $wgContLanguageCode;
wfDebug(" loadFromFileCache()\n");
$filename=$this->fileCacheName();
$wgOut->sendCacheControl();
+
+ header( "Content-type: $wgMimeType; charset={$wgOutputEncoding}" );
+ header( "Content-language: $wgContLanguageCode" );
if( $this->useGzip() ) {
if( wfClientAcceptsGzip() ) {