Skip to content

v1.1.0 - Related Cache Invalidation

Choose a tag to compare

@ibra379 ibra379 released this 11 Dec 18:28
· 24 commits to main since this release

πŸš€ What's New

✨ Related Model Cache Invalidation

New feature: automatically invalidate cache of related models when a model changes!

class Video extends Model
{
    use HasSmartCache;

    public static function invalidatesSmartCacheOf(): array
    {
        return [Notification::class];
    }
}