diff --git a/app/MetaGer.php b/app/MetaGer.php index 51a7546f6a3f8d3e8e85ba07b2106f4317506f25..b608e4e872272c3605ef4e751be5e7e45c0ce172 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -858,6 +858,7 @@ class MetaGer continue; } else { Redis::lpush($answer[0], $answer[1]); + Redis::expire($answer[0], 60); } foreach ($engines as $index => $engine) { if ($engine->hash === $answer[0]) { diff --git a/app/Models/Quicktips/Quicktips.php b/app/Models/Quicktips/Quicktips.php index daaac1506857cbad812c7544a918f72a46919942..a542a9a16e328b79def4bce0843a676137fd5146 100644 --- a/app/Models/Quicktips/Quicktips.php +++ b/app/Models/Quicktips/Quicktips.php @@ -85,6 +85,7 @@ class Quicktips do { $body = Redis::rpoplpush($this->hash, $this->hash); + Redis::expire($this->hash, 60); if ($body === false || $body === null) { usleep(50 * 1000); } else { diff --git a/app/Models/Searchengine.php b/app/Models/Searchengine.php index 32c4021770bffa28fe75623ddc9c46618f4dc092..41203ab722dccb608dc9cfb54a398fcea7b45fdc 100644 --- a/app/Models/Searchengine.php +++ b/app/Models/Searchengine.php @@ -200,6 +200,7 @@ abstract class Searchengine } if (!$this->cached && empty($body)) { $body = Redis::rpoplpush($this->hash, $this->hash); + Redis::expire($this->hash, 60); if ($body === false) { return $body; }