From 43c6f33ddb74283a9e798dc804505a06d283c6d4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 28 Dec 2008 15:17:21 +0000 Subject: [PATCH] Fix doc comment, sigh --- includes/HTMLFileCache.php | 3 ++- index.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/HTMLFileCache.php b/includes/HTMLFileCache.php index c23ed84e8c..5e42389c49 100644 --- a/includes/HTMLFileCache.php +++ b/includes/HTMLFileCache.php @@ -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(); diff --git a/index.php b/index.php index 4cc6d6b1c7..1c24f5a5e3 100644 --- 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 ); -- 2.20.1