Commit 986ca5dd authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Ursache für das Speicherleck gefunden.

Beim löschen des Keys für die Ergebnisse aus dem Redis System wurde der falsche Key angegeben.
parent 612f61a0
......@@ -236,6 +236,7 @@ abstract class Searchengine
$body = Cache::get($this->hash);
} elseif (Redis::hexists('search.' . $this->resultHash, $this->name)) {
$body = Redis::hget('search.' . $this->resultHash, $this->name);
Redis::hdel('search.' . $this->resultHash, $this->name);
if ($this->canCache && $this->cacheDuration > 0) {
Cache::put($this->hash, $body, $this->cacheDuration);
}
......@@ -244,7 +245,6 @@ abstract class Searchengine
$this->loadResults($body);
$this->getNext($metager, $body);
$this->loaded = true;
Redis::hdel('search.' . $this->hash, $this->name);
return true;
} else {
return false;
......
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