From: Ori Livneh Date: Tue, 12 Apr 2016 18:30:21 +0000 (-0700) Subject: Don't report image cache hits / misses X-Git-Tag: 1.31.0-rc.0~7312^2 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=d721dc49c87eb7a9f7e05421a26182bffe382d43;p=lhc%2Fweb%2Fwiklou.git Don't report image cache hits / misses This single metric is responsible for a substantial proportion of overall statsd traffic on the Wikimedia cluster, per the task cited below. Nobody is closely monitoring this statistic. We can reintroduce it with sampling at a later date if it is deemed to be useful. Bug: T101141 Change-Id: I6457cb91d527ce42c0918ac4e80613e6b59061ac --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 9677f5d4fa..40b2226f78 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -267,12 +267,6 @@ class LocalFile extends File { } } - if ( $this->dataLoaded ) { - wfIncrStats( 'image_cache.hit' ); - } else { - wfIncrStats( 'image_cache.miss' ); - } - return $this->dataLoaded; }