Skip to content

Commit edc9851

Browse files
committed
Changed the way the database name is determined when creating the cache prefix
Fixes #236
1 parent 32a6e67 commit edc9851

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.4.16] - 10 May 2019
8+
### Changed
9+
- the way the database name is determined when creating the cache prefix.
10+
11+
## [0.4.15] - 9 May 2019
12+
### Fixed
13+
- bindings used in `whereIn` clauses.
14+
15+
## [0.4.14] - 21 Apr 2019
16+
### Fixed
17+
- where `first()` didn't pass an array parameter.
18+
719
## [0.4.13] - 4 Apr 2019
820
### Added
921
- helper function to run closure with model-caching disabled. Thanks for the suggestion, @mycarrysun

src/Traits/CachePrefixing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function getCachePrefix() : string
1414

1515
protected function getDatabaseName() : string
1616
{
17-
return $this->query->connection->getDatabaseName();
17+
return $this->model->getConnection()->getDatabaseName();
1818
}
1919

2020
protected function getConnectionName() : string

0 commit comments

Comments
 (0)