* These tests were going a bit too well, so here are some more that fail.
[lhc/web/wiklou.git] / maintenance / clear_pcache_stats.php
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Maintenance
5 */
6
7 /** */
8 require_once('commandLine.inc');
9
10 foreach ( $wgLocalDatabases as $db ) {
11 noisyDelete("$db:stats:pcache_hit");
12 noisyDelete("$db:stats:pcache_miss_invalid");
13 noisyDelete("$db:stats:pcache_miss_expired");
14 noisyDelete("$db:stats:pcache_miss_absent");
15 }
16
17 /** @todo document */
18 function noisyDelete( $key ) {
19 global $wgMemc;
20 /*
21 print "$key ";
22 if ( $wgMemc->delete($key) ) {
23 print "deleted\n";
24 } else {
25 print "FAILED\n";
26 }*/
27 $wgMemc->delete($key);
28 }
29 ?>