Commit 84e94f70 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed manual cache connections

parent 11214b49
......@@ -48,9 +48,9 @@ class AppendLogs extends Command
$redis = null;
if (config("database.redis.cache.driver", "redis") === "redis") {
$redis = Redis::connection('cache');
$redis = Redis::connection(config('cache.stores.redis.connection'));
} elseif (config("database.redis.cache.driver", "redis") === "redis-sentinel") {
$redis = RedisSentinel::connection('cache');
$redis = RedisSentinel::connection(config('cache.stores.redis.connection'));
}
if ($redis === null) {
$this->error("No valid Redis Connection specified");
......
......@@ -318,7 +318,7 @@ class MetaGer
}
if (!empty($this->jskey)) {
$js = Redis::connection('cache')->lpop("js" . $this->jskey);
$js = Redis::connection(config('cache.stores.redis.connection'))->lpop("js" . $this->jskey);
if ($js !== null && boolval($js)) {
$this->javascript = true;
}
......@@ -1514,9 +1514,9 @@ class MetaGer
$logEntry = preg_replace("/\n+/", " ", $logEntry);
if (config("database.redis.cache.driver", "redis") === "redis") {
Redis::connection('cache')->rpush(\App\Console\Commands\AppendLogs::LOGKEY, $logEntry);
Redis::connection(config('cache.stores.redis.connection'))->rpush(\App\Console\Commands\AppendLogs::LOGKEY, $logEntry);
} elseif (config("database.redis.cache.driver", "redis") === "redis-sentinel") {
RedisSentinel::connection('cache')->rpush(\App\Console\Commands\AppendLogs::LOGKEY, $logEntry);
RedisSentinel::connection(config('cache.stores.redis.connection'))->rpush(\App\Console\Commands\AppendLogs::LOGKEY, $logEntry);
}
} catch (\Exception $e) {
Log::error($e->getMessage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment