Fix doc comment, sigh
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 28 Dec 2008 15:17:21 +0000 (15:17 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 28 Dec 2008 15:17:21 +0000 (15:17 +0000)
includes/HTMLFileCache.php
index.php

index c23ed84..5e42389 100644 (file)
@@ -131,7 +131,8 @@ class HTMLFileCache {
                wfDebug(" loadFromFileCache()\n");
 
                $filename = $this->fileCacheName();
-               // Raw pages will handle control on their own
+               // Raw pages should handle cache control on their own,
+               // even when using file cache. This reduces hits from clients.
                if( $this->mType !== 'raw' )
                        $wgOut->sendCacheControl();
 
index 4cc6d6b..1c24f5a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -75,8 +75,8 @@ if( $wgUseAjax && $action == 'ajax' ) {
 
 if( $wgUseFileCache && isset($wgTitle) ) {
        wfProfileIn( 'main-try-filecache' );
-       // Raw pages should handle control on their own
-       // even when using file cache.
+       // Raw pages should handle cache control on their own,
+       // even when using file cache. This reduces hits from clients.
        if( $action != 'raw' && HTMLFileCache::useFileCache() ) {
                /* Try low-level file cache hit */
                $cache = new HTMLFileCache( $wgTitle, $action );