From: Domas Mituzas Date: Mon, 26 Dec 2005 13:01:18 +0000 (+0000) Subject: Commit in live site statistic bits X-Git-Tag: 1.6.0~880 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=7df009ee343d5e46514297d8ca0c49350706a38b;p=lhc%2Fweb%2Fwiklou.git Commit in live site statistic bits --- diff --git a/includes/Article.php b/includes/Article.php index d8f6068b6c..79d2919914 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -738,6 +738,9 @@ class Article { $this->exists() && empty( $oldid ); wfDebug( 'Article::view using parser cache: ' . ($pcache ? 'yes' : 'no' ) . "\n" ); + if ( $wgUser->getOption( 'stubthreshold' ) ) { + wfIncrStats( 'pcache_miss_stub' ); + } $outputDone = false; if ( $pcache ) { diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 3de028fda2..ba904a0c76 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -324,6 +324,7 @@ CONTROL; $key = "$wgDBname:diff:oldid:{$this->mOldid}:newid:{$this->mNewid}"; $difftext = $wgMemc->get( $key ); if ( $difftext ) { + wfIncrStats( 'diff_cache_hit' ); return $difftext; } } @@ -354,7 +355,10 @@ CONTROL; // Save to cache for 7 days if ( $key !== false ) { + wfIncrStats( 'diff_cache_miss' ); $wgMemc->set( $key, $difftext, 7*86400 ); + } else { + wfIncrStats( 'diff_uncacheable' ); } return $difftext; }