Skip to content

Commit 406e59e

Browse files
authored
Merge pull request #733 from gillytech/v7
Removing path check in Redis driver before auth.
2 parents f099f61 + f16d1db commit 406e59e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/Phpfastcache/Drivers/Redis/Driver.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ protected function driverConnect(): bool
8585
$this->instance->setOption(RedisClient::OPT_PREFIX, $this->getConfig()->getOptPrefix());
8686
}
8787

88-
if (!$this->getConfig()->getPath()) {
89-
if ($this->getConfig()->getPassword() && !$this->instance->auth($this->getConfig()->getPassword())) {
90-
return false;
91-
}
88+
89+
if ($this->getConfig()->getPassword() && !$this->instance->auth($this->getConfig()->getPassword())) {
90+
return false;
9291
}
9392

9493
if ($this->getConfig()->getDatabase() !== null) {

0 commit comments

Comments
 (0)