Skip to content

Commit 4bce6be

Browse files
st3inyAndyScherzinger
authored andcommitted
fixup! perf(caldav): also cache empty share arrays
1 parent 755f68c commit 4bce6be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/dav/lib/DAV/Sharing/Backend.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function deleteAllSharesByUser(string $principaluri): void {
116116
* @return list<array{href: string, commonName: string, status: int, readOnly: bool, '{http://owncloud.org/ns}principal': string, '{http://owncloud.org/ns}group-share': bool}>
117117
*/
118118
public function getShares(int $resourceId): array {
119+
/** @var list<array{href: string, commonName: string, status: int, readOnly: bool, '{http://owncloud.org/ns}principal': string, '{http://owncloud.org/ns}group-share': bool}>|null $cached */
119120
$cached = $this->shareCache->get((string)$resourceId);
120121
if (is_array($cached)) {
121122
return $cached;

0 commit comments

Comments
 (0)