diff --git a/app/Jobs/Searcher.php b/app/Jobs/Searcher.php index 921370b021d961d445cfc48343d8771098149660..94ed1def48f0b5a81ab89dbdbedebbda5b732747 100644 --- a/app/Jobs/Searcher.php +++ b/app/Jobs/Searcher.php @@ -151,6 +151,8 @@ class Searcher implements ShouldQueue private function storeResult($result, $poptime, $hashValue){ Redis::hset('search.' . $hashValue, $this->name, $result); + // After 60 seconds the results should be read by the MetaGer Process and stored in the Cache instead + Redis::expire('search.' . $hashValue, 60); $this->lastTime = microtime(true); }