fix(setupchecks): Binary data can have problems with serialize

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
pull/50117/head
Git'Fellow 2025-01-09 19:21:35 +07:00 committed by backportbot[bot]
parent 1fd8539a58
commit c38d308aa2
1 changed files with 2 additions and 2 deletions

@ -59,7 +59,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);
@ -76,7 +76,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);