Commit 23f62ebb authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed wrong connections

parent 4a428e1d
......@@ -306,7 +306,7 @@ class HumanVerification extends Controller
abort(404);
}
Redis::connection("cache")->pipeline(function ($redis) use ($key) {
Redis::connection(config('cache.stores.redis.connection'))->pipeline(function ($redis) use ($key) {
$redis->rpush($key, true);
$redis->expire($key, 30);
});
......
......@@ -58,7 +58,7 @@ class BrowserVerification
if (!preg_match("/^[a-f0-9]{32}$/", $mgv)) {
abort(404);
}
$result = Redis::connection("cache")->blpop($mgv, 5);
$result = Redis::connection(config('cache.stores.redis.connection'))->blpop($mgv, 5);
if ($result !== null) {
$request->request->add(["headerPrinted" => false, "jskey" => $mgv]);
return $next($request);
......@@ -74,7 +74,7 @@ class BrowserVerification
echo(view('layouts.resultpage.verificationHeader')->with('key', $key)->render());
flush();
$answer = Redis::connection("cache")->blpop($key, 2);
$answer = Redis::connection(config('cache.stores.redis.connection'))->blpop($key, 2);
if ($answer !== null) {
echo(view('layouts.resultpage.resources')->render());
flush();
......
......@@ -243,7 +243,7 @@ Route::get('index.js', function (Request $request) {
abort(404);
}
Redis::connection("cache")->pipeline(function ($redis) use ($key) {
Redis::connection(config('cache.stores.redis.connection'))->pipeline(function ($redis) use ($key) {
$redis->rpush("js" . $key, true);
$redis->expire($key, 30);
});
......
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