Skip to content

Commit 395bf05

Browse files
committed
MC-28948: Doesn't work: "Files" as fallback when Magento fails to connect to "Redis"
1 parent 7acc338 commit 395bf05

File tree

1 file changed

+4
-0
lines changed
  • lib/internal/Magento/Framework/Session/SaveHandler

1 file changed

+4
-0
lines changed

lib/internal/Magento/Framework/Session/SaveHandler/Redis.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Magento\Framework\Filesystem;
1515
use Magento\Framework\App\Filesystem\DirectoryList;
1616

17+
/**
18+
* Redis session save handler
19+
*/
1720
class Redis implements \SessionHandlerInterface
1821
{
1922
/**
@@ -47,6 +50,7 @@ public function __construct(ConfigInterface $config, LoggerInterface $logger, Fi
4750
$this->config = $config;
4851
$this->logger = $logger;
4952
$this->filesystem = $filesystem;
53+
$this->getConnection();
5054
}
5155

5256
/**

0 commit comments

Comments
 (0)