Index: trunk/phase3/includes/HTMLFileCache.php |
— | — | @@ -131,7 +131,8 @@ |
132 | 132 | wfDebug(" loadFromFileCache()\n"); |
133 | 133 | |
134 | 134 | $filename = $this->fileCacheName(); |
135 | | - // Raw pages will handle control on their own |
| 135 | + // Raw pages should handle cache control on their own, |
| 136 | + // even when using file cache. This reduces hits from clients. |
136 | 137 | if( $this->mType !== 'raw' ) |
137 | 138 | $wgOut->sendCacheControl(); |
138 | 139 | |
Index: trunk/phase3/index.php |
— | — | @@ -75,8 +75,8 @@ |
76 | 76 | |
77 | 77 | if( $wgUseFileCache && isset($wgTitle) ) { |
78 | 78 | wfProfileIn( 'main-try-filecache' ); |
79 | | - // Raw pages should handle control on their own |
80 | | - // even when using file cache. |
| 79 | + // Raw pages should handle cache control on their own, |
| 80 | + // even when using file cache. This reduces hits from clients. |
81 | 81 | if( $action != 'raw' && HTMLFileCache::useFileCache() ) { |
82 | 82 | /* Try low-level file cache hit */ |
83 | 83 | $cache = new HTMLFileCache( $wgTitle, $action ); |