*** empty log message ***
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Jan 2005 13:00:33 +0000 (13:00 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Jan 2005 13:00:33 +0000 (13:00 +0000)
maintenance/pcache_stats.php [new file with mode: 0644]

diff --git a/maintenance/pcache_stats.php b/maintenance/pcache_stats.php
new file mode 100644 (file)
index 0000000..0f7c454
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+require_once('commandLine.inc');
+
+$hits = intval($wgMemc->get("$wgDBname:stats:pcache_hit"));
+$invalid = intval($wgMemc->get("$wgDBname:stats:pcache_miss_invalid"));
+$expired = intval($wgMemc->get("$wgDBname:stats:pcache_miss_expired"));
+$absent = intval($wgMemc->get("$wgDBname:stats:pcache_miss_absent"));
+$total = $hits + $invalid + $expired + $absent;
+printf( "hits:    %-10d %6.2f%%\n", $hits, $hits/$total*100 );
+printf( "invalid: %-10d %6.2f%%\n", $invalid, $invalid/$total*100 );
+printf( "expired: %-10d %6.2f%%\n", $expired, $expired/$total*100 );
+printf( "absent:  %-10d %6.2f%%\n", $absent, $absent/$total*100 );
+printf( "total:   %-10d %6.2f%%\n", $total, 100 );
+?>