]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add hit information to profiler 32279/head
authorCarl Schwan <carl@carlschwan.eu>
Thu, 5 May 2022 12:12:44 +0000 (14:12 +0200)
committerCarl Schwan <carl@carlschwan.eu>
Thu, 5 May 2022 12:12:44 +0000 (14:12 +0200)
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 <carl@carlschwan.eu>
lib/private/Memcache/ProfilerWrapperCache.php

index 8e9b160ba0eb398720a21593d85767ddd5a77084..6e76989ddddeadbcba25c81bb8f6f6bd0cf101f7 100644 (file)
@@ -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;
        }