X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FshowCacheStats.php;h=854910f9ea349da83dd29dd26257ad28cfaf935b;hb=32e1086bfd4090e56715456461c85cec67e36b1a;hp=cd9768d4bb67afd8f1a51b190ff41b8867da6f9e;hpb=75da5baa3f353a326edaf9ee4e0bbaed097f725a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/showCacheStats.php b/maintenance/showCacheStats.php index cd9768d4bb..854910f9ea 100644 --- a/maintenance/showCacheStats.php +++ b/maintenance/showCacheStats.php @@ -46,17 +46,6 @@ class ShowCacheStats extends Maintenance { if ( get_class( $wgMemc ) == 'EmptyBagOStuff' ) { $this->error( "You are running EmptyBagOStuff, I can not provide any statistics.", true ); } - $session = intval( $wgMemc->get( wfMemcKey( 'stats', 'request_with_session' ) ) ); - $noSession = intval( $wgMemc->get( wfMemcKey( 'stats', 'request_without_session' ) ) ); - $total = $session + $noSession; - if ( $total == 0 ) { - $this->error( "You either have no stats or the cache isn't running. Aborting.", true ); - } - $this->output( "Requests\n" ); - $this->output( sprintf( "with session: %-10d %6.2f%%\n", $session, $session / $total * 100 ) ); - $this->output( sprintf( "without session: %-10d %6.2f%%\n", $noSession, $noSession / $total * 100 ) ); - $this->output( sprintf( "total: %-10d %6.2f%%\n", $total, 100 ) ); - $this->output( "\nParser cache\n" ); $hits = intval( $wgMemc->get( wfMemcKey( 'stats', 'pcache_hit' ) ) );