Skip to content

Commit

Permalink
Clear index show cache when deleting show
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwade committed Feb 23, 2025
1 parent 1d81731 commit 305a890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routes/admin.shows.$show_.edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export const action = (async (args) => {
if (args.request.method === 'DELETE') {
await db.show.delete({ where: { id } });

cache.del(INDEX_SHOW_SLUG_KEY);

return redirect('/admin/shows');
}

Expand Down

0 comments on commit 305a890

Please sign in to comment.