Commit 9b1c1be
fix(database): run cache cleanup unconditionally, remove orphan dirs immediately
sentry__cleanup_cache must run regardless of cache_keep/http_retry
since large attachment dirs now live in the cache directory and need
cleanup even when caching is disabled.
Orphaned attachment dirs (no matching .envelope) are unconditionally
useless — remove them immediately instead of age-gating.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fbf446d commit 9b1c1be
2 files changed
Lines changed: 25 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 293 | + | |
296 | 294 | | |
297 | 295 | | |
298 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
727 | 729 | | |
728 | 730 | | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
745 | 735 | | |
746 | 736 | | |
747 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
748 | 741 | | |
| 742 | + | |
749 | 743 | | |
750 | 744 | | |
751 | 745 | | |
| |||
0 commit comments