From 5051edd835bbc006a8edc203b016205bc668fbc9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 26 May 2016 12:46:32 -0700 Subject: [PATCH] Send edit stash metrics for cache attempts Change-Id: I22d5626cca55c2cc35e1b33fced5902e8d364d40 --- includes/api/ApiStashEdit.php | 2 ++ 1 file changed, 2 insertions(+) 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 ] ); } -- 2.20.1