Skip to content
Snippets Groups Projects
Commit 612f61a0 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Speicherleck sollte behoben sein.

Nach und nach wurde die Redis Datenbank in der neuen Version immer Größer.
Wir haben vermutlich vergessen einen Key bei den Suchergebnissen zu löschen. Dieser hat jetzt einen Timeout bekommen.
parent fae76d18
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -151,6 +151,8 @@ class Searcher implements ShouldQueue ...@@ -151,6 +151,8 @@ class Searcher implements ShouldQueue
private function storeResult($result, $poptime, $hashValue){ private function storeResult($result, $poptime, $hashValue){
Redis::hset('search.' . $hashValue, $this->name, $result); 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); $this->lastTime = microtime(true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment