Commit fcb4afc1 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

expiring more redis keys

parent df1ff43a
......@@ -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]) {
......
......@@ -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 {
......
......@@ -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;
}
......
Supports Markdown
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