Modify search for #963

This commit is contained in:
James Cole
2017-10-30 17:28:43 +01:00
parent 0bb46dd184
commit 5722622251
5 changed files with 188 additions and 40 deletions

View File

@@ -82,7 +82,7 @@ class SearchController extends Controller
$cache->addProperty($fullQuery);
if ($cache->has()) {
$transactions = $cache->get();
//$transactions = $cache->get();
}
if (!$cache->has()) {
@@ -93,7 +93,6 @@ class SearchController extends Controller
$cache->store($transactions);
}
$html = view('search.search', compact('transactions'))->render();
return Response::json(['count' => $transactions->count(), 'html' => $html]);