From 2086bbd8b24a4a55fde1105749b13482bd64002a Mon Sep 17 00:00:00 2001 From: basemkhirat Date: Fri, 17 Feb 2017 17:15:25 +0200 Subject: [PATCH] fix caching for lumen --- src/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Query.php b/src/Query.php index d911f33..41998dd 100755 --- a/src/Query.php +++ b/src/Query.php @@ -795,7 +795,7 @@ protected function getResult($scroll_id) } else { - $result = Cache::driver($this->cacheDriver)->get($this->getCacheKey()); + $result = app("cache")->driver($this->cacheDriver)->get($this->getCacheKey()); if (is_null($result)) { @@ -830,7 +830,7 @@ protected function getLiveResult($scroll_id = NULL) } if (!is_null($this->cacheMinutes)) { - Cache::driver($this->cacheDriver)->put($this->getCacheKey(), $result, $this->cacheMinutes); + app("cache")->driver($this->cacheDriver)->put($this->getCacheKey(), $result, $this->cacheMinutes); } return $result;