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

Bugfix:

In seltenen Fällen hätte es sein können, dass Ergebnisse, die aus dem Cache stammen,
gelöscht werden bevor sie ausgelesen sind.
parent 9466d512
No related branches found
No related tags found
3 merge requests!261Development,!255Development,!253Bugfix:
...@@ -83,6 +83,7 @@ abstract class Searchengine ...@@ -83,6 +83,7 @@ abstract class Searchengine
if( Cache::has($this->hash) ) if( Cache::has($this->hash) )
{ {
$this->cached = true; $this->cached = true;
$this->retrieveResults();
}else }else
{ {
# Die Anfragen an die Suchmaschinen werden nun von der Laravel-Queue bearbeitet: # Die Anfragen an die Suchmaschinen werden nun von der Laravel-Queue bearbeitet:
...@@ -147,6 +148,8 @@ abstract class Searchengine ...@@ -147,6 +148,8 @@ abstract class Searchengine
public function retrieveResults() public function retrieveResults()
{ {
if( $this->loaded )
return true;
$body = ""; $body = "";
if( $this->cacheDuration > 0 && Cache::has($this->hash) ) if( $this->cacheDuration > 0 && Cache::has($this->hash) )
{ {
......
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