Commit 203c33b
fix: always add historical baseline to buried counter
The old normalizeBuriedCount had a cliff: once Redis grew past 800
organically, the baseline stopped being added and the counter dropped.
Fix: always add BURIED_HISTORICAL_BASELINE on top of raw Redis value.
Redis now stores only new burials since the Vercel migration — the 800
baseline is never baked into the stored number.
Note: if stats:buried in Redis is currently >0 (from old init-to-800
logic), the displayed count will be slightly higher than before. To
reset: set stats:buried to 0 in Upstash dashboard.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5665a26 commit 203c33b
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
| |||
0 commit comments