Skip to content

Commit cec395f

Browse files
committed
Renamed $status to $keyDifferentiator.
1 parent bf5b2da commit cec395f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/CacheKey.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(array $eagerLoad, Model $model, Builder $query)
2020
public function make(
2121
array $columns = ['*'],
2222
$idColumn = null,
23-
string $suffix = ''
23+
string $keyDifferentiator = ''
2424
) : string {
2525
$key = $this->getModelSlug();
2626
$key .= $this->getIdColumn($idColumn ?: '');
@@ -30,7 +30,7 @@ public function make(
3030
$key .= $this->getOrderByClauses();
3131
$key .= $this->getOffsetClause();
3232
$key .= $this->getLimitClause();
33-
$key .= $suffix;
33+
$key .= $keyDifferentiator;
3434
$key = sha1($key);
3535

3636
return $key;

src/Traits/Cachable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public function flushCache(array $tags = [])
4444
protected function makeCacheKey(
4545
array $columns = ['*'],
4646
$idColumn = null,
47-
string $suffix = ''
47+
string $keyDifferentiator = ''
4848
) : string {
4949
return (new CacheKey($this->eagerLoad, $this->model, $this->query))
50-
->make($columns, $idColumn, $suffix);
50+
->make($columns, $idColumn, $keyDifferentiator);
5151
}
5252

5353
protected function makeCacheTags() : array

0 commit comments

Comments
 (0)