From 986ca5ddf4e74b05620cb12c5b8f56f17ab898f0 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Fri, 19 May 2017 07:48:10 +0200 Subject: [PATCH] =?UTF-8?q?Ursache=20f=C3=BCr=20das=20Speicherleck=20gefun?= =?UTF-8?q?den.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Beim löschen des Keys für die Ergebnisse aus dem Redis System wurde der falsche Key angegeben. --- app/Models/Searchengine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Searchengine.php b/app/Models/Searchengine.php index 184a3d326..51b6d2d00 100644 --- a/app/Models/Searchengine.php +++ b/app/Models/Searchengine.php @@ -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; -- GitLab