Skip to content

Commit

Permalink
fix(setupchecks): Binary data can have problems with serialize
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored and backportbot[bot] committed Jan 10, 2025
1 parent 1fd8539 commit c38d308
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 @@ -59,7 +59,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 @@ -76,7 +76,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 c38d308

Please sign in to comment.