Skip to content

Commit deaadcd

Browse files
committed
Increase data caching
1 parent 1faf1b8 commit deaadcd

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

pages/artifacts/[artifact].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
113113
artifact,
114114
guides,
115115
},
116-
revalidate: 60 * 60 * 4
116+
revalidate: 60 * 60 * 8
117117
}
118118
}
119119

pages/artifacts/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
9292
.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))
9393
.map(w => createSmallArtifact(w))
9494
},
95-
revalidate: 60 * 60 * 4
95+
revalidate: 60 * 60 * 16
9696
}
9797
}

pages/characters/[char].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
479479
costTemplates,
480480
guides
481481
},
482-
revalidate: 60 * 60 * 4
482+
revalidate: 60 * 60 * 8
483483
}
484484
}
485485

pages/characters/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
143143
})
144144
.map(c => createSmallChar(c))
145145
},
146-
revalidate: 60 * 60 * 4
146+
revalidate: 60 * 60 * 16
147147
}
148148
}

pages/enemies/[enemy].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
162162
enemy,
163163
guides,
164164
},
165-
revalidate: 60 * 60 * 4
165+
revalidate: 60 * 60 * 8
166166
}
167167
}
168168

pages/enemies/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
108108
.values(data)
109109
.map(w => createSmallEnemy(w))
110110
},
111-
revalidate: 60 * 60 * 4
111+
revalidate: 60 * 60 * 16
112112
}
113113
}

pages/materials/[material].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
190190
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))
191191
}
192192
},
193-
revalidate: 60 * 60 * 4
193+
revalidate: 60 * 60 * 16
194194
}
195195
}
196196

pages/materials/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
183183
return mat
184184
})
185185
},
186-
revalidate: 60 * 60 * 4
186+
revalidate: 60 * 60 * 16
187187
}
188188
}

pages/weapons/[weapon].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
272272
weaponCurves,
273273
costTemplates
274274
},
275-
revalidate: 60 * 60 * 4
275+
revalidate: 60 * 60 * 8
276276
}
277277
}
278278

pages/weapons/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
122122
.sort((a, b) => b.stars - a.stars || a.weaponType.localeCompare(b.weaponType) || a.name.localeCompare(b.name))
123123
.map(w => createSmallWeapon(w))
124124
},
125-
revalidate: 60 * 60 * 4
125+
revalidate: 60 * 60 * 16
126126
}
127127
}

0 commit comments

Comments
 (0)