Skip to content

Commit

Permalink
fix caching for lumen
Browse files Browse the repository at this point in the history
  • Loading branch information
basemkhirat committed Feb 17, 2017
1 parent 47a8940 commit 2086bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2086bbd

Please sign in to comment.