From: Aaron Schulz Date: Thu, 26 May 2016 19:46:32 +0000 (-0700) Subject: Send edit stash metrics for cache attempts X-Git-Tag: 1.31.0-rc.0~6804^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=5051edd835bbc006a8edc203b016205bc668fbc9;p=lhc%2Fweb%2Fwiklou.git Send edit stash metrics for cache attempts Change-Id: I22d5626cca55c2cc35e1b33fced5902e8d364d40 --- diff --git a/includes/api/ApiStashEdit.php b/includes/api/ApiStashEdit.php index 40aa4d4b37..e739e51688 100644 --- a/includes/api/ApiStashEdit.php +++ b/includes/api/ApiStashEdit.php @@ -127,6 +127,8 @@ class ApiStashEdit extends ApiBase { $status = 'busy'; } + $this->getStats()->increment( "editstash.cache_stores.$status" ); + $this->getResult()->addValue( null, $this->getModuleName(), [ 'status' => $status ] ); }