3.0.0
- Added support for many to many automatic invalidations (#78)
Read the 3.x Documentation on Many-to-Many Automatic Cache Invalidation
getCacheTagsToInvalidateOnUpdate
changed:
For invalidation on many-to-many relations, $relation
will be the name of the relation (posts
, roles
, etc.) while $pivotedModels
will be a collection of models that got attached/detached/updated (Post
, Role
, etc.)
public function getCacheTagsToInvalidateOnUpdate($relation = null, $pivotedModels = null): array
{
//
}