Skip to content

Commit 4b06051

Browse files
authored
Clarify cache entry removal in ReferenceManager
Add comment to clarify cache entry removal process.
1 parent 6262c98 commit 4b06051

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/Collaboration/Reference/ReferenceManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public function invalidateCache(string $cachePrefix, ?string $cacheKey = null):
172172
return;
173173
}
174174

175+
// remove specific cache entry; using ($cacheKey ?? '') avoids md5(null) warnings and ensures stable hashing
175176
$this->cache->remove(md5($cachePrefix) . '-' . md5($cacheKey ?? ''));
176177
}
177178

0 commit comments

Comments
 (0)