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 nickvergessen committed Jan 9, 2025
1 parent a850a0b commit cd147cd
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 @@ -60,7 +60,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 @@ -77,7 +77,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 cd147cd

Please sign in to comment.