Commit 321ab80
authored
Add short caching for failed URL fetches
Previously, failed fetches (blocked sites, timeouts, etc.) were never
cached, causing every request for the same URL to re-hit the target
site. This wastes resources and can trigger further rate limiting.
Failed results are now cached for 5 minutes.1 parent 7807bc6 commit 321ab80
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | | - | |
412 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
413 | 421 | | |
414 | 422 | | |
415 | 423 | | |
| |||
0 commit comments