Skip to content

Commit

Permalink
Merge pull request #94 from streamingsystems/master
Browse files Browse the repository at this point in the history
Changed getCacheKey to use the method name instead of hardcoding to get
  • Loading branch information
rennokki authored Sep 29, 2021
2 parents 3168fb2 + b25dd4a commit e3a4501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/QueryCacheModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getFromQueryCache(string $method = 'get', array $columns = ['*']
$this->columns = $columns;
}

$key = $this->getCacheKey('get');
$key = $this->getCacheKey($method);
$cache = $this->getCache();
$callback = $this->getQueryCacheCallback($method, $columns, $id);
$time = $this->getCacheTime();
Expand Down

0 comments on commit e3a4501

Please sign in to comment.