Merge pull request #32279 from nextcloud/feat/profiler-cache-hit-info

Add hit information to profiler
This commit is contained in:
Carl Schwan 2022-05-05 15:51:18 +02:00 committed by GitHub
commit 0690646d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;
}