Skip to content

Commit a755769

Browse files
authored
Merge pull request #80 from vesper8/patch-1
remove unneeded check to make compatible with mongodb
2 parents 9782a4c + 82de600 commit a755769

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Traits/Cachable.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ protected function cache(array $tags = [])
2222
}
2323

2424
if (is_subclass_of($cache->getStore(), TaggableStore::class)) {
25-
if (is_a($this, CachedModel::class)) {
26-
array_push($tags, str_slug(get_called_class()));
27-
}
25+
array_push($tags, str_slug(get_called_class()));
2826

2927
$cache = $cache->tags($tags);
3028
}

0 commit comments

Comments
 (0)