Skip to content

Commit

Permalink
clear cache after link delete
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Sep 19, 2024
1 parent b57295e commit bb04f9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,11 @@ public function save(array $options = []): bool

return $result;
}

public function delete()
{
parent::delete();

resolve(LinkRepository::class)->clearLinksCache();
}
}

0 comments on commit bb04f9c

Please # to comment.