Commit 1df9609
committed
perf: increase ISR revalidation intervals for package and API routes
Current 60s ISR triggers background revalidation every minute for
active URLs. Server-side data caches (package-meta: 300s, downloads:
3600s, files: 1y) outlive this — most revalidations produce identical
HTML and the ISR write is skipped, but the function still executes.
Align page ISR (300s) with the fastest handler cache to eliminate
redundant revalidation invocations. OG images increased to 3600s
(stable per package version). API catch-all increased to 300s
(explicit overrides are unaffected).
Expected impact: ~80% fewer time-based revalidations, ~25-30%
compute reduction.1 parent 3186091 commit 1df9609
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments