Only start new session for anon users on submit, not edit
[lhc/web/wiklou.git] / maintenance / clear_pcache_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 }
10
11 function noisyDelete( $key ) {
12 global $wgMemc;
13 /*
14 print "$key ";
15 if ( $wgMemc->delete($key) ) {
16 print "deleted\n";
17 } else {
18 print "FAILED\n";
19 }*/
20 $wgMemc->delete($key);
21 }
22 ?>