]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - maintenance/clear_stats.php
MediaWiki 1.14.0-scripts
[autoinstallsdev/mediawiki.git] / maintenance / clear_stats.php
index 278c609c86b10fe8d0b3e038e0ebe6874df9a265..4cacd74c3d6e241835cb4e3d9059a343e82db215 100644 (file)
@@ -1,14 +1,27 @@
 <?php
+/**
+ * This script remove all statistics tracking from memcached
+ * 
+ * @file
+ * @ingroup Maintenance
+ */
+
 require_once('commandLine.inc');
 
 foreach ( $wgLocalDatabases as $db ) {
+       noisyDelete("$db:stats:request_with_session");
+       noisyDelete("$db:stats:request_without_session");
        noisyDelete("$db:stats:pcache_hit");
        noisyDelete("$db:stats:pcache_miss_invalid");
        noisyDelete("$db:stats:pcache_miss_expired");
        noisyDelete("$db:stats:pcache_miss_absent");
+       noisyDelete("$db:stats:pcache_miss_stub");
        noisyDelete("$db:stats:image_cache_hit");
        noisyDelete("$db:stats:image_cache_miss");
        noisyDelete("$db:stats:image_cache_update");
+       noisyDelete("$db:stats:diff_cache_hit");
+       noisyDelete("$db:stats:diff_cache_miss");
+       noisyDelete("$db:stats:diff_uncacheable");
 }
 
 function noisyDelete( $key ) {
@@ -22,4 +35,4 @@ function noisyDelete( $key ) {
        }*/
        $wgMemc->delete($key);
 }
-?>
+