Commit 844cac8
fix(cache): use separate singleFlight keys for bot vs non-bot requests
Instead of bypassing singleFlight entirely (which wastes CPU on duplicate
bot requests), use a prefixed flight key so bots still deduplicate among
themselves but never become leader for non-bot callers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b34270d commit 844cac8
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
0 commit comments