Commit 11147134 authored by Dominik Hebeler's avatar Dominik Hebeler

Changed the Expire to use specified timeout in env file

parent 965ca5d5
......@@ -55,7 +55,7 @@ class MetaGerSearch extends Controller
foreach ($metager->getResults() as $result) {
$pipeline->rpush($metager->getRedisCurrentResultList(), base64_encode(serialize($result)));
}
$pipeline->expire($metager->getRedisCurrentResultList(), 6000);
$pipeline->expire($metager->getRedisCurrentResultList(), env('REDIS_RESULT_CACHE_DURATION'));
$pipeline->execute();
# Die Ausgabe erstellen:
......@@ -154,7 +154,7 @@ class MetaGerSearch extends Controller
$resultTmp->new = false;
$pipeline->rpush($metager->getRedisCurrentResultList(), base64_encode(serialize($resultTmp)));
}
$pipeline->expire($metager->getRedisCurrentResultList(), 6000);
$pipeline->expire($metager->getRedisCurrentResultList(), env('REDIS_RESULT_CACHE_DURATION'));
$pipeline->execute();
}
......
......@@ -109,7 +109,7 @@ abstract class Searchengine
$redis = Redis::connection(env('REDIS_RESULT_CONNECTION'));
// We will push the confirmation of the submission to the Result Hash
$redis->hset($metager->getRedisEngineResult() . $this->name, "status", "waiting");
$redis->expire($metager->getRedisEngineResult() . $this->name, 60);
$redis->expire($metager->getRedisEngineResult() . $this->name, env('REDIS_RESULT_CACHE_DURATION'));
// We need to submit a action that one of our workers can understand
// The missions are submitted to a redis queue in the following string format
......
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