Committed a bunch of live hacks from Wikimedia servers
[lhc/web/wiklou.git] / includes / LoadBalancer.php
index cbee03e..33c23bb 100644 (file)
@@ -623,6 +623,9 @@ class LoadBalancer {
                                wfProfileOut( __METHOD__ );
                                return $times;
                        }
+                       wfIncrStats( 'lag_cache_miss_expired' );
+               } else {
+                       wfIncrStats( 'lag_cache_miss_absent' );
                }
 
                # Cache key missing or expired
@@ -642,7 +645,6 @@ class LoadBalancer {
 
                # But don't give the timestamp to the caller
                unset($times['timestamp']);
-               wfIncrStats( 'lag_cache_miss' );
                wfProfileOut( __METHOD__ );
                return $times;
        }