From: Aaron Schulz Date: Sun, 28 Dec 2008 15:17:21 +0000 (+0000) Subject: Fix doc comment, sigh X-Git-Tag: 1.31.0-rc.0~43720 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=43c6f33ddb74283a9e798dc804505a06d283c6d4;p=lhc%2Fweb%2Fwiklou.git Fix doc comment, sigh --- 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 );