Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Decrease cache time
  • Loading branch information
Tibowl committed Feb 2, 2022
1 parent f31df9d commit 5a24038
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pages/artifacts/[artifact].tsx
Expand Up @@ -113,7 +113,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
artifact,
guides,
},
revalidate: 60 * 60 * 8
revalidate: 60 * 60 * 1
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/artifacts/index.tsx
Expand Up @@ -92,6 +92,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
.sort((a, b) => Math.max(...b.levels ?? [5]) - Math.max(...a.levels ?? [5]) || Math.min(...a.levels ?? [4]) - Math.min(...b.levels ?? [4]) || a.name.localeCompare(b.name))
.map(w => createSmallArtifact(w))
},
revalidate: 60 * 60 * 16
revalidate: 60 * 60 * 2
}
}
2 changes: 1 addition & 1 deletion pages/characters/[char].tsx
Expand Up @@ -479,7 +479,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
costTemplates,
guides
},
revalidate: 60 * 60 * 8
revalidate: 60 * 60 * 1
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/characters/index.tsx
Expand Up @@ -143,6 +143,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
})
.map(c => createSmallChar(c))
},
revalidate: 60 * 60 * 16
revalidate: 60 * 60 * 2
}
}
2 changes: 1 addition & 1 deletion pages/enemies/[enemy].tsx
Expand Up @@ -162,7 +162,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
enemy,
guides,
},
revalidate: 60 * 60 * 8
revalidate: 60 * 60 * 1
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/enemies/index.tsx
Expand Up @@ -108,6 +108,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
.values(data)
.map(w => createSmallEnemy(w))
},
revalidate: 60 * 60 * 16
revalidate: 60 * 60 * 2
}
}
2 changes: 1 addition & 1 deletion pages/events.tsx
Expand Up @@ -207,6 +207,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
props: {
events
},
revalidate: 60 * 60 * 4
revalidate: 60 * 30
}
}
2 changes: 1 addition & 1 deletion pages/guides/[category].tsx
Expand Up @@ -59,7 +59,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
props: {
guide: category // TODO optimize
},
revalidate: 60 * 60 * 4
revalidate: 60 * 60 * 1
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/guides/[category]/[guide].tsx
Expand Up @@ -96,7 +96,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
guide, // TODO optimize
pageNumber
},
revalidate: 60 * 60 * 4
revalidate: 60 * 30
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/guides/index.tsx
Expand Up @@ -53,6 +53,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
props: {
guides: data.map(g => g.name)
},
revalidate: 60 * 60 * 4
revalidate: 60 * 60 * 1
}
}
2 changes: 1 addition & 1 deletion pages/materials/[material].tsx
Expand Up @@ -194,7 +194,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
weaponAscension: weaponAscension.sort((a, b) => (a.stars && b.stars && b.stars - a.stars) || (a.weapon && b.weapon && a.weapon.localeCompare(b.weapon)) || a.name.localeCompare(b.name))
}
},
revalidate: 60 * 60 * 16
revalidate: 60 * 60 * 2
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/materials/index.tsx
Expand Up @@ -184,6 +184,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
return mat
})
},
revalidate: 60 * 60 * 16
revalidate: 60 * 60 * 2
}
}
2 changes: 1 addition & 1 deletion pages/weapons/[weapon].tsx
Expand Up @@ -272,7 +272,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
weaponCurves,
costTemplates
},
revalidate: 60 * 60 * 8
revalidate: 60 * 60 * 1
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/weapons/index.tsx
Expand Up @@ -122,6 +122,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
.sort((a, b) => b.stars - a.stars || a.weaponType.localeCompare(b.weaponType) || a.name.localeCompare(b.name))
.map(w => createSmallWeapon(w))
},
revalidate: 60 * 60 * 16
revalidate: 60 * 60 * 2
}
}

0 comments on commit 5a24038

Please sign in to comment.