Skip to content

Commit 4496ba7

Browse files
committed
Merge #295 [V32] Avoid clear cache with prefix
2 parents 853dfcf + 4b06051 commit 4496ba7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/Collaboration/Reference/ReferenceManager.php

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

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

178179
/**

0 commit comments

Comments
 (0)