From cf11dfe73b5eb267c05fcfb75f6eb1a2c24ec820 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 12 Oct 2018 07:57:26 +0200 Subject: [PATCH] Remove cache for #1778 --- app/Http/Controllers/Json/AutoCompleteController.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/Http/Controllers/Json/AutoCompleteController.php b/app/Http/Controllers/Json/AutoCompleteController.php index 975395635a..dbd993aedd 100644 --- a/app/Http/Controllers/Json/AutoCompleteController.php +++ b/app/Http/Controllers/Json/AutoCompleteController.php @@ -100,14 +100,6 @@ class AutoCompleteController extends Controller $unfiltered = null; $filtered = null; - $cache = new CacheProperties; - $cache->addProperty($subject); - // very unlikely a user will actually search for this string. - $key = '' === $search ? 'skjf0893j89fj2398hd89dh289h2398hr7isd8900828u209ujnxs88929282u' : $search; - $cache->addProperty($key); - if ($cache->has()) { - return response()->json($cache->get()); // @codeCoverageIgnore - } // search for all accounts. if ('all-accounts' === $subject) { $unfiltered = $this->getAccounts( @@ -167,7 +159,6 @@ class AutoCompleteController extends Controller if (null === $filtered) { throw new FireflyException(sprintf('Auto complete handler cannot handle "%s"', $subject)); // @codeCoverageIgnore } - $cache->store($filtered); return response()->json($filtered); }