Skip to content

Commit

Permalink
fixed cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFlash10 authored and devsargam committed Sep 9, 2024
1 parent feff22e commit 082bdff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/web/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ export async function updateTrack(
});
});
}

await cache.evict("getAllTracks", []);
await getAllTracks();

return track;
} catch (e) {
console.log(e);
Expand Down
4 changes: 4 additions & 0 deletions apps/web/screens/Admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const Admin = async () => {
});
return (
<div className="pt-2">
<p className="mb-2 text-center text-sm text-gray-500 dark:text-gray-400">
Note: Changes will be reflected at the Client FE but here in Admin you'll have to refresh in order to see the
changes
</p>
<div className="flex justify-center">
<Tabs defaultValue="auto" className="w-full">
<div className="flex justify-center my-2">
Expand Down

0 comments on commit 082bdff

Please sign in to comment.