* (bug 2188) Correct template namespace for Greek localization
[lhc/web/wiklou.git] / maintenance / clear_stats.php
1 <?php
2 require_once('commandLine.inc');
3
4 foreach ( $wgLocalDatabases as $db ) {
5 noisyDelete("$db:stats:pcache_hit");
6 noisyDelete("$db:stats:pcache_miss_invalid");
7 noisyDelete("$db:stats:pcache_miss_expired");
8 noisyDelete("$db:stats:pcache_miss_absent");
9 noisyDelete("$db:stats:image_cache_hit");
10 noisyDelete("$db:stats:image_cache_miss");
11 noisyDelete("$db:stats:image_cache_update");
12 }
13
14 function noisyDelete( $key ) {
15 global $wgMemc;
16 /*
17 print "$key ";
18 if ( $wgMemc->delete($key) ) {
19 print "deleted\n";
20 } else {
21 print "FAILED\n";
22 }*/
23 $wgMemc->delete($key);
24 }
25 ?>