Page MenuHomePhabricator

output-caching-patch.diff.txt

Authored By
bzimport
Nov 21 2014, 8:06 PM
Size
1 KB
Referenced Files
None
Subscribers
None

output-caching-patch.diff.txt

Index: includes/OutputPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/OutputPage.php,v
retrieving revision 1.229
diff -U8 -r1.229 OutputPage.php
--- includes/OutputPage.php 26 Jun 2005 06:49:56 -0000 1.229
+++ includes/OutputPage.php 30 Jun 2005 22:44:28 -0000
@@ -112,16 +112,17 @@
wfDebug( "-- we might send Last-Modified : $lastmod\n", false );
if( ($ismodsince >= $timestamp ) && $wgUser->validateCache( $ismodsince ) ) {
# Make sure you're in a place you can leave when you call us!
header( "HTTP/1.0 304 Not Modified" );
$this->mLastModified = $lastmod;
$this->sendCacheControl();
wfDebug( "CACHED client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp\n", false );
$this->disable();
+ @ob_end_clean(); // Don't output compressed blob
return true;
} else {
wfDebug( "READY client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp\n", false );
$this->mLastModified = $lastmod;
}
} else {
wfDebug( "client did not send If-Modified-Since header\n", false );
$this->mLastModified = $lastmod;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1330
Default Alt Text
output-caching-patch.diff.txt (1 KB)

Event Timeline