From 190d8bd7d706cb18ac19b6800c1a7a5df63bcc7a Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 17 Jun 2016 22:48:28 +0100 Subject: [PATCH] log api stats seperately --- ext/statsd/main.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/statsd/main.php b/ext/statsd/main.php index 2cb3500a..5267495f 100644 --- a/ext/statsd/main.php +++ b/ext/statsd/main.php @@ -50,6 +50,9 @@ class StatsDInterface extends Extension { else if($event->page_matches("rss")) { $this->_stats("rss"); } + else if($event->page_matches("api")) { + $this->_stats("api"); + } else { #global $_shm_load_start; #$time = microtime(true) - $_shm_load_start;