Skip to content

Commit 7e4d40a

Browse files
memuratssgyuris
authored andcommitted
Clarify cache entry removal in ReferenceManager
Add comment to clarify cache entry removal process.
1 parent b96bd34 commit 7e4d40a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)