mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #50117 from nextcloud/backport/50113/stable30
[stable30] fix(SetupChecks): Don't test caches using binary data
This commit is contained in:
commit
d1507f641d
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue