Commit 940dea39 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed caching since Cache::many isn't working in cluster mode

parent 8ea607f2
......@@ -652,19 +652,10 @@ class MetaGer
public function checkCache()
{
if ($this->canCache()) {
$keys = [];
foreach ($this->engines as $engine) {
$keys[] = $engine->hash;
}
# Noch searchengines enabled
if (empty($keys)) {
return;
}
$cacheValues = Cache::many($keys);
foreach ($this->engines as $engine) {
if ($cacheValues[$engine->hash] !== null) {
if(Cache::has($engine->hash)){
$engine->cached = true;
$engine->retrieveResults($this, $cacheValues[$engine->hash]);
$engine->retrieveResults($this, Cache::get($engine->hash));
}
}
}
......
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