diff --git a/app/Http/Controllers/MetaGerSearch.php b/app/Http/Controllers/MetaGerSearch.php index f46c4331c7cf2db51b0cbfcd69fd7e911872aed5..3596d29bf5139c25a6d2f80d816d0046716b43d8 100644 --- a/app/Http/Controllers/MetaGerSearch.php +++ b/app/Http/Controllers/MetaGerSearch.php @@ -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(); } diff --git a/app/Models/Searchengine.php b/app/Models/Searchengine.php index 991da0595a854653dba69fb9f689fbf10014bf55..f6bacb0969824ad4d4a414946dd7225cd3973a97 100644 --- a/app/Models/Searchengine.php +++ b/app/Models/Searchengine.php @@ -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