summaryrefslogtreecommitdiff
path: root/maintenance/stats.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/stats.php')
-rw-r--r--maintenance/stats.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/maintenance/stats.php b/maintenance/stats.php
index bb19e671..25bb9cc7 100644
--- a/maintenance/stats.php
+++ b/maintenance/stats.php
@@ -1,6 +1,10 @@
<?php
require_once('commandLine.inc');
+if( get_class( $wgMemc ) == 'FakeMemCachedClient' ) {
+ die("You are running FakeMemCachedClient, I can not provide any statistics.\n");
+}
+
print "Requests\n";
$session = intval($wgMemc->get(wfMemcKey('stats','request_with_session')));
$noSession = intval($wgMemc->get(wfMemcKey('stats','request_without_session')));