Skip to content

Commit e3a4501

Browse files
authored
Merge pull request #94 from streamingsystems/master
Changed getCacheKey to use the method name instead of hardcoding to get
2 parents 3168fb2 + b25dd4a commit e3a4501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/QueryCacheModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function getFromQueryCache(string $method = 'get', array $columns = ['*']
7575
$this->columns = $columns;
7676
}
7777

78-
$key = $this->getCacheKey('get');
78+
$key = $this->getCacheKey($method);
7979
$cache = $this->getCache();
8080
$callback = $this->getQueryCacheCallback($method, $columns, $id);
8181
$time = $this->getCacheTime();

0 commit comments

Comments
 (0)