From ba88187649a80e0f5370ca4b5755b1faf9fe0a7c Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 5 May 2022 14:12:44 +0200 Subject: [PATCH] Add hit information to profiler This might be helpful later on for the cache ui that is worked on in https://github.com/nextcloud/profiler/pull/21 Signed-off-by: Carl Schwan --- lib/private/Memcache/ProfilerWrapperCache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Memcache/ProfilerWrapperCache.php b/lib/private/Memcache/ProfilerWrapperCache.php index 8e9b160ba0e..6e76989dddd 100644 --- a/lib/private/Memcache/ProfilerWrapperCache.php +++ b/lib/private/Memcache/ProfilerWrapperCache.php @@ -69,6 +69,7 @@ class ProfilerWrapperCache extends AbstractDataCollector implements IMemcacheTTL 'start' => $start, 'end' => microtime(true), 'op' => $this->getPrefix() . '::get::' . $key, + 'hit' => $ret !== null, ]; return $ret; } -- 2.39.5