Skip to content

Commit b25dd4a

Browse files
author
Rob Desilets
committed
Changed getCacheKey to use the method name instead of hardcoding to get
1 parent 3168fb2 commit b25dd4a

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)