Skip to content

Commit

Permalink
Merge pull request #50116 from nextcloud/backport/50113/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(SetupChecks): Don't test caches using binary data
  • Loading branch information
nickvergessen authored Jan 10, 2025
2 parents d256713 + 23e8b2d commit 3b97190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/settings/lib/SetupChecks/MemcacheConfigured.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function run(): SetupResult {
}

if ($this->cacheFactory->isLocalCacheAvailable()) {
$random = random_bytes(64);
$random = bin2hex(random_bytes(64));
$local = $this->cacheFactory->createLocal('setupcheck.local');
try {
$local->set('test', $random);
Expand All @@ -93,7 +93,7 @@ public function run(): SetupResult {
}

if ($this->cacheFactory->isAvailable()) {
$random = random_bytes(64);
$random = bin2hex(random_bytes(64));
$distributed = $this->cacheFactory->createDistributed('setupcheck');
try {
$distributed->set('test', $random);
Expand Down

0 comments on commit 3b97190

Please sign in to comment.