Merge pull request #50113 from nextcloud/setupChecksMoveFromBinary

fix(SetupChecks): Don't test caches using binary data
This commit is contained in:
Git'Fellow 2025-01-10 09:00:50 +01:00 committed by GitHub
commit 3fea444d1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ class MemcacheConfigured implements ISetupCheck {
}
if ($this->cacheFactory->isLocalCacheAvailable()) {
$random = random_bytes(64);
$random = bin2hex(random_bytes(64));
$local = $this->cacheFactory->createLocal('setupcheck.local');
try {
$local->set('test', $random);
@ -77,7 +77,7 @@ class MemcacheConfigured implements ISetupCheck {
}
if ($this->cacheFactory->isAvailable()) {
$random = random_bytes(64);
$random = bin2hex(random_bytes(64));
$distributed = $this->cacheFactory->createDistributed('setupcheck');
try {
$distributed->set('test', $random);