Skip to content

Commit ca2f56d

Browse files
committed
Merge branch 'release/0.3.3'
2 parents 286e069 + f1e9240 commit ca2f56d

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

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).
6+
## [0.3.3] - 10 Nov 2018
7+
### Fixed
8+
- typo in method `checkCooldownAndFlushAfterPersiting()` to
9+
`checkCooldownAndFlushAfterPersisting()`; thanks @jacobzlogar!
610

711
## [0.3.2] - 3 Nov 2018
812
### Added

src/CachedBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function inRandomOrder($seed = '')
9797

9898
public function insert(array $values)
9999
{
100-
$this->checkCooldownAndFlushAfterPersiting($this->model);
100+
$this->checkCooldownAndFlushAfterPersisting($this->model);
101101

102102
return parent::insert($values);
103103
}
@@ -188,7 +188,7 @@ public function sum($column)
188188

189189
public function update(array $values)
190190
{
191-
$this->checkCooldownAndFlushAfterPersiting($this->model);
191+
$this->checkCooldownAndFlushAfterPersisting($this->model);
192192

193193
return parent::update($values);
194194
}

src/Traits/Caching.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected function checkCooldownAndRemoveIfExpired(Model $instance)
148148
$instance->flushCache();
149149
}
150150

151-
protected function checkCooldownAndFlushAfterPersiting(Model $instance)
151+
protected function checkCooldownAndFlushAfterPersisting(Model $instance)
152152
{
153153
[$cacheCooldown, $invalidatedAt] = $instance->getModelCacheCooldown($instance);
154154

src/Traits/ModelCaching.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,32 @@ public static function all($columns = ['*'])
2626
public static function bootCachable()
2727
{
2828
static::created(function ($instance) {
29-
$instance->checkCooldownAndFlushAfterPersiting($instance);
29+
$instance->checkCooldownAndFlushAfterPersisting($instance);
3030
});
3131

3232
static::deleted(function ($instance) {
33-
$instance->checkCooldownAndFlushAfterPersiting($instance);
33+
$instance->checkCooldownAndFlushAfterPersisting($instance);
3434
});
3535

3636
static::saved(function ($instance) {
37-
$instance->checkCooldownAndFlushAfterPersiting($instance);
37+
$instance->checkCooldownAndFlushAfterPersisting($instance);
3838
});
3939

4040
// TODO: figure out how to add this listener
4141
// static::restored(function ($instance) {
42-
// $instance->checkCooldownAndFlushAfterPersiting($instance);
42+
// $instance->checkCooldownAndFlushAfterPersisting($instance);
4343
// });
4444

4545
static::pivotAttached(function ($instance) {
46-
$instance->checkCooldownAndFlushAfterPersiting($instance);
46+
$instance->checkCooldownAndFlushAfterPersisting($instance);
4747
});
4848

4949
static::pivotDetached(function ($instance) {
50-
$instance->checkCooldownAndFlushAfterPersiting($instance);
50+
$instance->checkCooldownAndFlushAfterPersisting($instance);
5151
});
5252

5353
static::pivotUpdated(function ($instance) {
54-
$instance->checkCooldownAndFlushAfterPersiting($instance);
54+
$instance->checkCooldownAndFlushAfterPersisting($instance);
5555
});
5656
}
5757

0 commit comments

Comments
 (0)