3 * This script remove all statistics tracking from memcached
10 require_once('commandLine.inc');
12 foreach ( $wgLocalDatabases as $db ) {
13 noisyDelete("$db:stats:request_with_session");
14 noisyDelete("$db:stats:request_without_session");
15 noisyDelete("$db:stats:pcache_hit");
16 noisyDelete("$db:stats:pcache_miss_invalid");
17 noisyDelete("$db:stats:pcache_miss_expired");
18 noisyDelete("$db:stats:pcache_miss_absent");
19 noisyDelete("$db:stats:pcache_miss_stub");
20 noisyDelete("$db:stats:image_cache_hit");
21 noisyDelete("$db:stats:image_cache_miss");
22 noisyDelete("$db:stats:image_cache_update");
23 noisyDelete("$db:stats:diff_cache_hit");
24 noisyDelete("$db:stats:diff_cache_miss");
25 noisyDelete("$db:stats:diff_uncacheable");
28 function noisyDelete( $key ) {
32 if ( $wgMemc->delete($key) ) {
37 $wgMemc->delete($key);