Skip to content

Commit

Permalink
Remove cache timing as it did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmwatson committed Jul 23, 2024
1 parent ff9f342 commit 3048184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/filterPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ function Component(props: Props) {
async function getData() {
initialized.current = true;
const res = await fetch(
`${process.env.NEXT_PUBLIC_URL}/api/power-stations`,
{ next: { revalidate: 3600 } }
`${process.env.NEXT_PUBLIC_URL}/api/power-stations`
);
const powerStationsData = await res.json();
setPowerStations(powerStationsData.powerStations);
Expand Down
3 changes: 1 addition & 2 deletions components/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ function Component({ powerStations, panelOpen, setPanelOpen }: Props) {
async function getData() {
if (sidePanelEntity) {
const res = await fetch(
`${process.env.NEXT_PUBLIC_URL}/api/entity-info?id=${sidePanelEntity}`,
{ next: { revalidate: 3600 } }
`${process.env.NEXT_PUBLIC_URL}/api/entity-info?id=${sidePanelEntity}`
);
const entityInfoData = await res.json();
setSidePanelEntityInfo(entityInfoData);
Expand Down

0 comments on commit 3048184

Please sign in to comment.